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. #12

Open
jcoelh0 opened this issue Apr 21, 2021 · 1 comment
Open

Global CSS cannot be imported from within node_modules. #12

jcoelh0 opened this issue Apr 21, 2021 · 1 comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request hacktoberfest hacktoberfest

Comments

@jcoelh0
Copy link

jcoelh0 commented Apr 21, 2021

This is the output error:

./node_modules/bootstrap/dist/css/bootstrap.min.css
Global CSS cannot be imported from within node_modules.
Read more: https://err.sh/next.js/css-npm
Location: node_modules/react-notification-timeline/index.js

"Reach out to the maintainer and ask for them to publish a compiled version of their dependency."
Thanks

@atapas atapas added dependencies Pull requests that update a dependency file enhancement New feature or request labels Apr 27, 2021
@NagarjunShroff NagarjunShroff added the Work-In-Progress Work in progress label May 4, 2021
@jaywcjlove
Copy link

@jcoelh0 I created a nextjs package next-remove-imports to solve the problem.

Example: https://codesandbox.io/s/nextjs-example-react-md-editor-qjhn7?file=/pages/index.js

@atapas atapas added hacktoberfest hacktoberfest and removed Work-In-Progress Work in progress labels Oct 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request hacktoberfest hacktoberfest
Projects
None yet
Development

No branches or pull requests

4 participants