auto-import with package.json#imports
does not take moduleResolution
into account
#60405
Labels
Needs More Info
The issue still hasn't been fully clarified
🔎 Search Terms
"subpath", "imports", "package.json", "moduleResolution"
🕗 Version & Regression Information
package.json
imports
field #55015⏯ Playground Link
alan910127/ts-60405-repro
💻 Code
🙁 Actual behavior
When auto-importing the function
baz
(either through completion or code action), the typescript language server will insert an import statement with a.js
file extension.🙂 Expected behavior
Since we are using
"moduleResolution": "Bundler"
, it should insert an import statement without the.js
file extension.Additional information about the issue
I've seen a similar issue #59200, but I cannot reproduce the issue, with the same setup. Therefore, I think my issue might be related with the subpath imports.
The text was updated successfully, but these errors were encountered: