Skip to content
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

add global stylesheet to _app and support #1

Closed
wants to merge 1 commit into from

Conversation

smhmd
Copy link

@smhmd smhmd commented Jun 14, 2021

Refernces: cypress-io/cypress#16879 (comment)

Errors when adding global stylesheet (that isn't tailwindcss/tailwind.css -- weirdly enough)

Error:

ERROR in ./styles/index.css
Module Error (from ./node_modules/next/dist/build/webpack/loaders/error-loader.js):
Global CSS cannot be imported from files other than your Custom <App>. Please move all global CSS imports to pages/_app.js. Or convert the import to Component-Level CSS (CSS Modules).
Read more: https://nextjs.org/docs/messages/css-global

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant