Nitro V3 - SSR Build Fails
When I use the nitro v3 plugin, my build fails, when I use the v2 plugin it works
It seems related to including “jsdom” package in my project
I haven’t had time to make a repro sadly
But this is the stack trace
'''
vite v7.1.7 building SSR bundle for production...
✓ 5871 modules transformed.
✗ Build failed in 6.78s
error during build:
[commonjs] ../../node_modules/.pnpm/cssstyle@5.3.1_postcss@8.5.6/node_modules/cssstyle/lib/generated/properties.js (4759:0): Unexpected token
.
. Expected ... , *, (, [, :, , ?, = or an identifier
file: /Users/raz/work/bootstepper/node_modules/.pnpm/cssstyle@5.3.1_postcss@8.5.6/node_modules/cssstyle/lib/generated/properties.js:4759:0 (/Users/raz/work/bootstepper/node_modules/.pnpm/jsdom@27.0.0_bufferutil@4.0.9_postcss@8.5.6_utf-8-validate@6.0.5/node_modules/jsdom/lib/jsdom/living/generated/CDATASection.js)
4757: definition: lineHeight_export_definition
4758: }.parse(lineB, {
4759: global
^
4760: });
4761: if (typeof lineHeightB !== "string") {
at getRollupError (file:///Users/raz/work/bootstepper/node_modules/.pnpm/rollup@4.52.3/node_modules/rollup/dist/es/shared/parseAst.js:401:41)
at ParseError.initialise (file:///Users/raz/work/bootstepper/node_modules/.pnpm/rollup@4.52.3/node_modules/rollup/dist/es/shared/node-entry.js:14453:28)
at convertNode (file:///Users/raz/work/bootstepper/node_modules/.pnpm/rollup@4.52.3/node_modules/rollup/dist/es/shared/node-entry.js:16336:10)
at convertProgram (file:///Users/raz/work/bootstepper/node_modules/.pnpm/rollup@4.52.3/node_modules/rollup/dist/es/shared/node-entry.js:15576:12)
at Module.setSource (file:///Users/raz/work/bootstepper/node_modules/.pnpm/rollup@4.52.3/node_modules/rollup/dist/es/shared/node-entry.js:17331:24)
at async ModuleLoader.addModuleSource (file:///Users/raz/work/bootstepper/node_modules/.pnpm/rollup@4.52.3/node_modules/rollup/dist/es/shared/node-entry.js:21351:13)
ELIFECYCLE Command failed with exit code 1.
'''
0 Replies