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 CSS cannot be imported from within node_modules with nextjs #175

Closed
chorobin opened this issue Aug 17, 2021 · 0 comments · Fixed by #176
Closed

Global CSS cannot be imported from within node_modules with nextjs #175

chorobin opened this issue Aug 17, 2021 · 0 comments · Fixed by #176

Comments

@chorobin
Copy link
Contributor

It seems like nextjs does not allow for node_modules to import css files. This appears to be because nextjs does not compile node_modules further.

./node_modules/react-day-picker/lib/style.css
Global CSS cannot be imported from within node_modules.
Read more: https://nextjs.org/docs/messages/css-npm
Location: node_modules/@purple/phoenix-components/dist/bundle.esm.js

Here is a link to the issue with nextjs

vercel/next.js#19936

And a link to an FAQ in nextjs

https://nextjs.org/docs/messages/css-npm

@samuelg0rd0n samuelg0rd0n linked a pull request Aug 17, 2021 that will close this issue
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 a pull request may close this issue.

1 participant