Fix Cypress config loading: give the solution tsconfig a module system

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.
This commit is contained in:
Nicolas 2026-08-16 10:51:58 +02:00
parent 17c98bda94
commit 07692db4e0

View file

@ -1,4 +1,8 @@
{ {
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Bundler"
},
"files": [], "files": [],
"references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }] "references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }]
} }