Trust you are having a great day!
I'm getting this error & do not know how to solve it (Image also attached):
ERROR in ./node_modules/payload/dist/admin/scss/app.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet.rules.use!./node_modules/sass-loader/dist/cjs.js!./node_modules/payload/dist/admin/scss/app.scss) Module build failed (from ./node_modules/sass-loader/dist/cjs.js): SassError: Can't find stylesheet to import. ╷ 180 │ @import '~payload-user-css'; │ ^^^^^^^^^^^^^^^^^^^ ╵ node_modules/payload/dist/admin/scss/app.scss 180:9 root stylesheet webpack compiled with 1 error
Any help would be appreciated.
Thank you very much for your time!
Are you attempting to import
No, I am not
Are you importing one of your own css files, using a path alias? You will need to use relative paths for now. This is known shortcoming, the inability to use path aliases.
Very interesting, I do not make use of path aliases. Is there a command I can run to see which file is causing this error?
Just looked at the code, are you using
in your payload.config.ts to set a custom path for a css file?
its saying that it cannot findthat
You are awesome!
I commented out my
& everything works now.
is the path alias problem throughout payload? I was just trying to set this up