-
Notifications
You must be signed in to change notification settings - Fork 26.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server doesn't return a generated CSS file from .next folder #10414
Comments
This can be fixed by building the CSS file inside So in my example project change the SASS build target like this: Inside next.config.js
I'll close this now. But if someone can give some more information on the issue, please do! For example... why |
You can try our built in Sass support and delete your entire |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Bug report
Describe the bug
After 'npm run build' SASS based CSS file is generated in .next folder. After running 'npm run start' it's referenced in the HTML correctly, but not found (404).
To Reproduce
next-js-css-file-not-found-issue.zip
npm install
. (The node.js version I used is v12.14.1)npm run dev
.npm run build; npm run start
.Expected behavior
npm run start
would serve the CSS file.System information
Additional context
I'm trying to get SASS globbing working and couldn't find a way to do that with @zeit/next-sass.
It would also be great to get this working with @zeit/next-sass. Input is welcome!
The text was updated successfully, but these errors were encountered: