Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@tcaesvk
Copy link

tcaesvk commented Mar 20, 2025

Acknowledgement

  • 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.
  • node16 and nodenext requires the module compiler option to be set to Node16 or NodeNext for error TS5110.
  • 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.

@tcaesvk 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 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
@RyanCavanaugh RyanCavanaugh closed this as not planned Won't fix, can't repro, duplicate, stale Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants