In vue2 and 3, < template > route completion is affected by those configurations

Above:
The @ / path of img tag is complete. Sometimes it will prompt, sometimes it will not. I don't know which configuration has affected it

 

tsconfig.json

{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"strict": true,
"jsx": "preserve",
"importHelpers": true,
"moduleResolution": "node",
"experimentalDecorators": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"noImplicitAny": false,
"allowJs": true,
"types": [
// "webpack-env",
// "jest"
"node"
],
"baseUrl": ".",
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue"],
"exclude": [
"node_modules"
],
}

 

 

webpack to configure:auto

0
4 comments

I have searched the Internet for a long time, but I can't find an explanation. Sometimes the path will prompt, sometimes it won't

0

Please could you elaborate on this? Do you mean that URLs like "@/assets/..." are resolved, but no completion is provided when entering them?

0

 

Yes, but after the input is completed, delete the last paragraph and enter again, and you will be prompted

0

Please sign in to leave a comment.