You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should update the error messages displayed to the user very clear that there's an alternative so they're not stuck thinking Next.js cannot import CSS.
The text was updated successfully, but these errors were encountered:
I updated the original comment: no reproduction is necessary per say, see the messages.ts file and read the associated err.sh links already there, then improve the message!
The current error message for getGlobalImportError says Global CSS cannot be imported from files other than your Custom <App>. Please move all global CSS imports to pages/_app.js.
What you would like is to inform the users that they can also use CSS Modules instead of Global CSS, correct? So I would add something like Hey, or you can also use CSS Modules instead!?
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.
vercel
locked as resolved and limited conversation to collaborators
Jan 28, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently, we only explain to use CSS Modules in the err.sh link. The error message does not provide guidance on what to do next, only the problem.
See the messages in this file:
https://github.com/vercel/next.js/blob/canary/packages/next/build/webpack/config/blocks/css/messages.ts
We should update the error messages displayed to the user very clear that there's an alternative so they're not stuck thinking Next.js cannot import CSS.
The text was updated successfully, but these errors were encountered: