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
This is the intended behavior unless you have set the importModuleSpecifierEnding preference to js, because the controlling tsconfig here says moduleResolution: node, which has never needed file extensions (and which were idiomatically not included in that era).
You can either set the preference, or update the module resolution setting to nodenext, or both. I've sent a PR for the former
Activity
Include .js/.ts in module specifiers in the VS Code workspace
RyanCavanaugh commentedon Nov 15, 2024
This is the intended behavior unless you have set the
importModuleSpecifierEndingpreference tojs, because the controllingtsconfighere saysmoduleResolution: node, which has never needed file extensions (and which were idiomatically not included in that era).You can either set the preference, or update the module resolution setting to
nodenext, or both. I've sent a PR for the formertypescript-bot commentedon Nov 18, 2024
This issue has been marked as "Question" and has seen no recent activity. It has been automatically closed for house-keeping purposes.