You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Module resolution: the moduleResolution compiler option seems set to be bundler when the module compiler option is set to ES6, ES2015, ES2020, ES2022, or ESNext.
#61454
Closed
1 task done
tcaesvk opened this issue
Mar 20, 2025
· 0 comments
I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.
Comment
The moduleResolution compiler option allows the following values: node10, classic, node16, nodenext, and bundler; its default value is classic when the module compiler option is set to any of CommonJS, Node16, NodeNext, or Preserve as documented.
classic, the current default value, is scheduled to be deprecated in TypeScript 6.0.
node10 is only for backwards compatibility and it should also no longer be used.
bundler seems to be the only possible option by elimination when the module compiler option is set to ES6, ES2015, ES2020, ES2022, or ESNext.
In my opinion, the default value for moduleResolution compiler option needs to change to bundler when the module compiler option is set to any of ES6, ES2015, ES2020, ES2022, or ESNext.
The text was updated successfully, but these errors were encountered:
tcaesvk
changed the title
Module resolution: Option moduleResolution seems set to be bundler when option module is set to ES6, ES2015, ES2020, ES2022, or ESNext.
Module resolution: the moduleResolution compiler option seems set to be bundler when option module is set to ES6, ES2015, ES2020, ES2022, or ESNext.
Mar 20, 2025
tcaesvk
changed the title
Module resolution: the moduleResolution compiler option seems set to be bundler when option module is set to ES6, ES2015, ES2020, ES2022, or ESNext.
Module resolution: the moduleResolution compiler option seems set to be bundler when the module compiler option is set to ES6, ES2015, ES2020, ES2022, or ESNext.
Mar 20, 2025
Acknowledgement
Comment
The
moduleResolution
compiler option allows the following values:,node10
,classic
,node16
, andnodenext
bundler
; its default value isclassic
when themodule
compiler option is set to any ofCommonJS
,Node16
,NodeNext
, orPreserve
as documented.classic
, the current default value, is scheduled to be deprecated in TypeScript 6.0.node10
is only for backwards compatibility and it should also no longer be used.node16
andnodenext
requires themodule
compiler option to be set toNode16
orNodeNext
for error TS5110.bundler
seems to be the only possible option by elimination when themodule
compiler option is set toES6
,ES2015
,ES2020
,ES2022
, orESNext
.In my opinion, the default value for
moduleResolution
compiler option needs to change tobundler
when themodule
compiler option is set to any ofES6
,ES2015
,ES2020
,ES2022
, orESNext
.The text was updated successfully, but these errors were encountered: