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

[Turbopack] Parsing css source code failed #1122

Open
rwieruch opened this issue Jan 22, 2024 · 5 comments
Open

[Turbopack] Parsing css source code failed #1122

rwieruch opened this issue Jan 22, 2024 · 5 comments

Comments

@rwieruch
Copy link

Bug report in v4

vercel/turbo#2356 (comment)

Trying to use Turbopack in Next.js with the latest Leaflet/Leaflet-React version yields the error from the linked Issue. A Turbopack maintainer mentioned that Leaflet does not use valid syntax here.

@jpainam
Copy link

jpainam commented Feb 11, 2024

Is t here any update for this issue? @rwieruch How did you solve it?
Thanks

@rwieruch
Copy link
Author

rwieruch commented Feb 12, 2024

Did not solve it. Cannot use Turbopack until this is fixed :)

But I think there is enough pressure on Library Maintainers with all these recent changes in the React/Next community, so I'd hope that someone else may see this as a good first issue to contribute to open source :)

@rwieruch
Copy link
Author

Related vercel/turbo#2356 (comment)

@rinvii
Copy link

rinvii commented Mar 12, 2024

I'm getting a similar error

Screen Shot 2024-03-12 at 8 28 35 AM

@shenst1
Copy link

shenst1 commented Mar 22, 2024

@rwieruch I was able to do a workaround using the cdn:

Map.tsx
import "./Map.css";
Map.css
@import url('https://unpkg.com/leaflet@1.9.4/dist/leaflet.css');

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

4 participants