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

Global styles #1

Closed
flolu opened this issue Mar 29, 2021 · 1 comment
Closed

Global styles #1

flolu opened this issue Mar 29, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@flolu
Copy link
Owner

flolu commented Mar 29, 2021

Importing ../styles/globals.css into pages/_app.tsx throws the following error:

Failed to compile.

./styles/globals.css
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://err.sh/next.js/css-global
Location: pages/_app.tsx


> Build error occurred
Error: > Build failed because of webpack errors

Which is weird since I obviously import the styles only into pages/_app.

References

@flolu
Copy link
Owner Author

flolu commented Apr 1, 2021

Fixed with #2

@flolu flolu closed this as completed Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant