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

Issue in Nextjs app while rendering css #54

Open
santoshkaranam opened this issue Jul 31, 2023 · 1 comment
Open

Issue in Nextjs app while rendering css #54

santoshkaranam opened this issue Jul 31, 2023 · 1 comment

Comments

@santoshkaranam
Copy link

NextJs: Global CSS cannot be imported from within node_modules.
vercel/next.js#19936

nextjs restricts importing csss from node modules folder.
file here:
https://github.com/digidem/leaflet-side-by-side/blob/gh-pages/index.js
has 2 css imports

require('./layout.css')
require('./range.css')

which dont work in nextjs.

@santoshkaranam
Copy link
Author

i have fixed it by removing those css and directly importing from my app code using cdn
https://cdn.jsdelivr.net/gh/digidem/leaflet-side-by-side/layout.css
https://cdn.jsdelivr.net/gh/digidem/leaflet-side-by-side/range.css

i will raise a pull request.

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

No branches or pull requests

1 participant