Stylesheets of custom components can't resolve on fields #875
Replies: 1 comment 1 reply
-
Hey @matthijs166 — this is actually due to your TypeScript build process and is a common problem that TypeScript projects often face. The jist of this is that when you build a TS project, You need to use Do that, and you'll be good. In the meantime, we'll update our I'm going to convert this to a discussion because I think it will help others out! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Report
I implemented https://github.com/payloadcms/custom-field-guide and get an error on build
Error: Cannot find module './styles.scss', its the stylesheet of a custom component.
Expected Behavior
That the build doesn't fail when I include custom stylesheets
Current Behavior
When I run payload dev everything works fine but the moment I'm building the project it crashes
Steps to Reproduce
I have posted also an issue here (payloadcms/custom-field-guide#2) but I think it's a bug in payload self.
Or I am implementing it wrong but then the docs need to be updated.
I also get the bug in v0.7.4
Beta Was this translation helpful? Give feedback.
All reactions