Template-vue-ts tsconfig.json options #14001
Closed
inblossoms
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
"moduleResolution": "bundler", "allowImportingTsExtensions": true, These two configuration items have been like this In my memory for a long time.
When building a new vue project from vite, because the parsing strategy used is Bundler,there are always some problems like:
In order to solve this problem, we need to delete the tsconfig file "allowImportingTsExtensions": true; set the moduleResolution to "node", and leave it that way when they import file extension. So don't we need to make some changes here, so we don't have to revise all the time. (Although it's easy)
At the same time, I saw several popular component libraries that did the same thing:
Beta Was this translation helpful? Give feedback.
All reactions