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
Please sign in to leave a comment.
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
Please could you elaborate on this? Do you mean that URLs like
"@/assets/..."
are resolved, but no completion is provided when entering them?Yes, but after the input is completed, delete the last paragraph and enter again, and you will be prompted
Thanks; submitted to developers as https://youtrack.jetbrains.com/issue/WEB-56946/completion-for-aliased-paths-doesnt-work-when-entering-URLs-in-HTMLVue-templates, please follow it for updates