-
-
Notifications
You must be signed in to change notification settings - Fork 439
IntelliSence works inside of the script tag but doesn't work inside of <template> #4416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Could you please provide your code? I'm not sure if it is vuejs/core#9296 |
Even in the most simple file possible it fails. This one has the exactly same structure as the file in the video) I've figured out though that in my other project that runs on Vue CLI (instead of Vite for this one), everything works fine. So must be something about Vite? Here's my {
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": false,
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"types": ["node", "vite/client"],
/* Bundler mode */
"moduleResolution": "node",
"allowImportingTsExtensions": true,
// "resolveJsonModule": false,
// "isolatedModules": false,
"noEmit": true,
"jsx": "preserve",
/* Linting */
"strict": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noFallthroughCasesInSwitch": true,
/* These ones I tried switching back and forth already */
"importHelpers": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"isolatedModules": true,
},
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue, ./src/**/**/*.ts"],
"references": [{ "path": "./tsconfig.node.json" }],
} And import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
server: {
port: 3000
}
}) |
I've figured it out. Turns out when trying to solve the problem I made a typo in the The typo I had just in case you're interested: "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue, ./src/**/**/*.ts"], Instead of "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "./src/**/**/*.ts"], |
bandicam.2024-05-24.15-42-57-511.mp4
Description
As can be seen on the video, the pop-up hints for the data values work when typed inside of the script tag (e. g. in a method), but when it comes to the template - it only works for the "top layer", so the hints do display the data values (not always though), but not their properties after the dot. The issue applies for both anonymous an ts-typed objects. Doesn't display errors if something is wrong either.
What was attempted
@builtin types
) and another single vue snippets extension I haveBack when it was Volar, it worked perfectly fine in both HTML and TS, but now it won't let me install it back again and my experience is now ruined :(
The text was updated successfully, but these errors were encountered: