-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Closed
Copy link
Labels
Description
Rollup Version
4.55.3
Operating System (or Browser)
macos
Node Version (if applicable)
No response
Link To Reproduction
https://stackblitz.com/edit/rollup-repro-sespyw4y?file=src%2Frouter.tsx
Expected Behaviour
The application is built without any errors.
Actual Behaviour
The build fails with the following error:
✗ Build failed in 12.18s
error during build:
[commonjs] node_modules/cssstyle/lib/generated/properties.js (4766:6): Unexpected token `.`. Expected ... , *, (, [, :, , ?, = or an identifier
4764: property: lineHeight_export_property
4765: }.parse(lineB, {
4766: global
^
4767: });
4768: if (typeof lineHeightB !== "string") {
at Module.getRollupError (file:///home/projects/rollup-repro-lpmdytwc/node_modules/rollup/dist/es/shared/parseAst.js:568:41)
at ParseError.initialise (file:///home/projects/rollup-repro-lpmdytwc/node_modules/rollup/dist/es/shared/node-entry.js:14330:41)
at convertNode (file:///home/projects/rollup-repro-lpmdytwc/node_modules/rollup/dist/es/shared/node-entry.js:16234:10)
at convertProgram (file:///home/projects/rollup-repro-lpmdytwc/node_modules/rollup/dist/es/shared/node-entry.js:15477:12)
at Module.setSource (file:///home/projects/rollup-repro-lpmdytwc/node_modules/rollup/dist/es/shared/node-entry.js:17222:24)
at async ModuleLoader.addModuleSource (file:///home/projects/rollup-repro-lpmdytwc/node_modules/rollup/dist/es/shared/node-entry.js:21224:13)
Apologies for the somewhat bloated reproduction (Rollup is not a direct dependency) but I stripped away as much as I felt was reasonable from a project that have this error.
There is a PR in the cssstyle repository with a workaround that pinpoints the error but it will not be merged (jsdom/cssstyle#268).
Reactions are currently unavailable