-
Notifications
You must be signed in to change notification settings - Fork 467
Open
3 / 43 of 4 issues completed
Copy link
Labels
Description
Version
29.1.1
Steps to reproduce
I have a monorepo setup with multiple apps and libraries. One of the apps (the largest, the only one with isolatedModules: true
) fails after updating to TS 5.2 with the following error: error TS5110: Option 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'
.
Currently using @tsconfig/node18/tsconfig.json
for the monorepo base config, which contains the following:
{
"module": "node16",
"moduleResolution": "node16"
}
The module
option is overridden by ts-jest
:
- returned
100
instead ofnode16
:dist/legacy/config/config-set.js
in_resolveTsConfig()
- from
100
to1
:dist/legacy/compiler/ts-compiler.js
ingetCompiledOutput()
Expected behavior
I would expect that module
is not changed.
Actual behavior
module
is changed first to 100
and later to 1
(CommonJs)
Debug log
extracted info above
Additional context
No response
Environment
System:
OS: Windows 10 10.0.19044
CPU: (8) x64 Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz
Binaries:
Node: 18.17.0 - ~\AppData\Local\fnm_multishells\16532_1692954691139\node.EXE
Yarn: 1.22.19 - ~\AppData\Local\fnm_multishells\16532_1692954691139\yarn.CMD
npm: 9.8.1 - ~\AppData\Local\fnm_multishells\16532_1692954691139\npm.CMD
pnpm: 8.6.12 - ~\AppData\Local\fnm_multishells\16532_1692954691139\pnpm.CMD
npmPackages:
jest: ^29.6.4 => 29.6.4
LukeNotable, Creative-Difficulty, zapteryx, chentsulin, andrew-pledge-io and 54 moreshrujalshah28, humanzz, rthreei and jakeleventhal