apps/web/tsconfig.json (the tsc -b "solution" file) had no compilerOptions, only files/references. Cypress's bundled ts-node picks the nearest tsconfig.json to transpile cypress.config.ts, and with no "module" specified it defaulted to CommonJS while package.json declares "type": "module" — causing: ReferenceError: exports is not defined in ES module scope Adding module/moduleResolution to the solution config (harmless for tsc -b itself, since it only builds the referenced projects) fixes the mismatch. This regressed after the earlier fix for the stray vite.config.js emission and was never re-verified against Cypress until CI caught it.
8 lines
193 B
JSON
8 lines
193 B
JSON
{
|
|
"compilerOptions": {
|
|
"module": "ESNext",
|
|
"moduleResolution": "Bundler"
|
|
},
|
|
"files": [],
|
|
"references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }]
|
|
}
|