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
Component tags are always highlighted in red (idem like #1172) #1247
Comments
I have the same problem for |
This error is due to missing |
@plashenkov Make sure you have put it in |
Sorry, no change. Example in starter project, after vscode reload {
"name": "volar-starter",
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"serve": "vite preview"
},
"dependencies": {
"vue": "next"
},
"devDependencies": {
"@vitejs/plugin-vue": "latest",
"@volar-plugins/prettier-html": "latest",
"@vue/compiler-sfc": "latest",
"@vue/runtime-dom": "^3.2.31",
"typescript": "latest",
"vite": "latest",
"vue-tsc": "latest"
}
} tsconfig.json {
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"strict": true,
"jsx": "preserve",
"sourceMap": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": true,
"lib": ["esnext", "dom"],
"types": ["vite/client"]
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
} |
@stefaanMLB Please check if you have disabled |
This was set to configuredByTheme |
I have the same problem. |
@stefaanMLB Please follow steps.
|
@johnsoncodehk |
@johnsoncodehk thanks for the precise instructions. appreciating it. [Trace - 07:11:35] Received response 'textDocument/semanticTokens/range - (5)' in 3141ms.
Result: {
"resultId": "1651727495813",
"data": [
2,
3,
10,
12,
0
]
}
[Trace - 07:11:35] Received response 'textDocument/documentLink - (7)' in 2502ms.
Result: [
{
"range": {
"start": {
"line": 1,
"character": 27
},
"end": {
"line": 1,
"character": 44
}
},
"target": "file:///c%3A/Users/lcartreul/Documents/projecten/volar-starter/src/assets/logo.png"
}
]
[Trace - 07:11:35] Received response 'textDocument/codeLens - (8)' in 2455ms.
Result: []
[Trace - 07:11:35] Received response 'textDocument/codeLens - (6)' in 2659ms.
Result: []
[Trace - 07:11:35] Received request 'vue/docVersion - (10)'.
Params: {
"uri": "file:///c%3A/Users/lcartreul/Documents/projecten/volar-starter/src/App.vue"
}
|
@negipoyoc Do you have install node_modules of volar-starter? @stefaanMLB Seems you have correct response data, please try:
|
@johnsoncodehk |
@johnsoncodehk Hello. Thank you for your answer. It seems that the data was Empty because I checked the output without resolving the dependency with volar-starter. I then reviewed the tsconfig.json of my project, which has a similar problem, while looking at the tsconfig.json of volar-starter. By adding the following to tsconfig.json, I was able to get the highlighting and the problem was resolved in my project.
Thank you for addressing the problem despite my simple carelessness. |
@stefaanMLB For that message, see #1124 (comment). @negipoyoc It's ok, I will improve user guidance. |
@johnsoncodehk I tried disabling any exntensions that could interfere (like vetur), but no luck. |
@johnsoncodehk, created a new project in With The custom components look the same. In this case, the application is correctly displayed and works in the browser. With this information in mind, how can I try to solve this problem? |
Please update to v0.34.17. |
Updated to version |
Same here, update to v0.35.0 has solved the problem. |
We using explicit components import and now it is hard to see what wasn't imported correctly |
The past behavior was abandoned to resolve the situation in this issue, if you expected the past behavior, please open a new feature request. |
Same problem like #1172.
Same thing in the volare-starter project (pulled, not changed in any way)
jsx property set as requested in tsconfig.json
How can I debug this problem further ?
The text was updated successfully, but these errors were encountered: