turbo: [Turbopack] Parsing css source code failed
What version of Turbopack are you using?
latest
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Describe the Bug
error -
[parse]
src/styles/dist.css
src/styles/dist.css:2484:45 Parsing css source code failed
2480 align-items: center;
2481 justify-content: space-between;
2482 gap: 1rem;
2483 --tw-bg-opacity: 1;
2484 > background-color: hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));
2485 padding: 1rem;
2486 border-radius: var(--rounded-box, 1rem);
2487 }
Some other error that was ok to work with
[rendering]
[root of the dev server]/
Error during SSR Rendering
timed out waiting for the Node.js process to connect
[resolve]
/wode/packages/utils/lib/crypto
Error resolving URI imports: not implemented yet
unable to resolve uri "node:" "crypto"
Expected Behavior
css working
To Reproduce
for project https://github.com/wenerme/wode under demo dir
Then
pnpm tailwindcss -i src/styles/globals.css -o src/styles/dist.css --watch
src/pages/_app.tsx change import '../styles/globals.css'; to import '../styles/dist.css';
Reproduction Repo
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 5
- Comments: 20 (6 by maintainers)
Actually, this is a bug of leftlet. It’s not a valid syntax
Getting the same error with the turbopack and as mentioned by @Katsuyuki-Karasawa does not occur with normal
next devLeaflet
1.9.4Next14.0.4Also getting this with the
leafletpackage as a dependency ofreact-leaflet.This seems to be a IE (or Edge?) specific style definition, which might not be part of the CSS standard. Can this error be fixed without adjusting the
leafletlibrary source? Otherwise I will open an issue on their repository.Edit: This is with NextJS 14.0.2 using
npx next dev --turboHey, got the same problem with Next 14.1.3 and tailwind 3.4.1 :
I wanted to import a css file from a package to my app, in a turborepo monorepo
I am seeing this on Next.js 14.1.3 with tailwind 3.4.1
going to close this for now as this discussion is no longer related to the original reported issue
the syntax was removed from leaflet itself more than a year ago https://github.com/Leaflet/Leaflet/commit/2daebbb4390b8e52c0b8c7bfc2074fe577f8bf73
if you’re encountering any other problems, feel free to open a new issue in the next.js repo
Having the same issue regarding
react-leaflet. Opened an issue at react-leaflet: https://github.com/PaulLeCam/react-leaflet/issues/1122Any update on this issue?
The above-mentioned error is occurring with Next.js
14.0.5-canary.6 (turbo)+shadcn/ui. It does not occur with the regularnext dev.https://github.com/aipictors/aipictors/issues/77#issuecomment-1850602476
Same with NextJS 14.0.3
I’m also getting a similar error
Is this resolved in recent versions of Next.js?
Should be fixed by https://github.com/swc-project/swc/pull/6260