[Vuejs]-VueJS, Typescript and VSCode – "Relative import paths need explicit file extensions in EcmaScript imports…"

0👍

"moduleResolution": "bundler"

https://www.typescriptlang.org/tsconfig#moduleResolution

‘bundler’ for use with bundlers. Like node16 and nodenext, this mode
supports package.json "imports" and "exports", but unlike the Node.js
resolution modes, bundler never requires file extensions on relative
paths in imports.

Leave a comment