Skip to content

Commit 353940f

Browse files
committed
fix(tsconfig): ignoreDeprecations 5.0 silences IDE warning kept reporting node10 even with NodeNext
User's Cursor TS Language Service kept showing 'moduleResolution=node10 is deprecated' error regardless of what value we set ('Node', 'node10', 'Node16', 'NodeNext' — all flagged). tsc CLI compiles cleanly at every step, so the on-disk values are fine; the IDE service was caching old state and/or applying TS 7-track strictness to TS 5.9 internals. Fix per the TS team's official escape hatch: 'ignoreDeprecations': '5.0' (matches the current TS 5.x line). The IDE hint suggested '6.0' but TS 5.9 rejects that value as invalid — '5.0' is the right one until we upgrade to TS 6+. Suppresses the deprecation warning in the IDE without changing actual compile behavior.
1 parent 862a6f5 commit 353940f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

extension/test/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"target": "ES2022",
44
"module": "NodeNext",
55
"moduleResolution": "NodeNext",
6+
"ignoreDeprecations": "5.0",
67
"lib": ["ES2022"],
78
"strict": true,
89
"esModuleInterop": true,

0 commit comments

Comments
 (0)