Closed alvarosabu closed 2 months ago
When can this bug be fixed?
Hi @devick, unfortunately, we don't know, something changed in vue language tools and we still need to figure out what it is and how to fix it.
I found that after uninstalling the latest version and installing version 3.8.1, this feature becomes available
Hi @devick does it work for https://github.com/Tresjs/tres/releases/tag/3.9.0 ?
It makes no sense if it doesn't work there since we didn't make any change from 3.8.1 to 3.9.0 that would affect types
Checking both versions (3.8.1 and 3.9.0) package.json the only thing I see different is the vue version and the vite-plugin-dts
There was a breaking change on vue 3.4 for JSX global types, bout that should be affecting us since we don't use JSX https://github.com/vuejs/core/blob/main/changelogs/CHANGELOG-3.4.md#340-slam-dunk-2023-12-29
What TypeScript version are you using? It could be something related with the language tools package.
Hi @devick does it work for https://github.com/Tresjs/tres/releases/tag/3.9.0 ?
It makes no sense if it doesn't work there since we didn't make any change from 3.8.1 to 3.9.0 that would affect types
It also works on 3.9.0。
my package.json:
{
"name": "mytresjs",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "run-p type-check \"build-only {@}\" --",
"preview": "vite preview",
"build-only": "vite build",
"type-check": "vue-tsc --build --force"
},
"dependencies": {
"@tresjs/cientos": "3.8.0",
"@tresjs/core": "3.9.0",
"three": "^0.167.1",
"tweakpane": "^4.0.4",
"vue": "^3.4.29"
},
"devDependencies": {
"@tsconfig/node20": "^20.1.4",
"@types/node": "^20.14.5",
"@types/three": "^0.167.2",
"@vitejs/plugin-vue": "^5.0.5",
"@vue/tsconfig": "^0.5.1",
"npm-run-all2": "^6.2.0",
"typescript": "~5.4.0",
"vite": "^5.3.1",
"vue-tsc": "^2.0.21"
}
}
@
What TypeScript version are you using? It could be something related with the language tools package.
is 5.4.5
Hi all @devick after a long debugging session, I managed to figure out the issue, there was an unwanted overwrite on the InstanceProps
setting all props to any. In the end had nothing to do with vue/language-tools at all even if the reproduction was similar.
Please update to v4.2.10
Hi all @devick after a long debugging session, I managed to figure out the issue, there was an unwanted overwrite on the
InstanceProps
setting all props to any. In the end had nothing to do with vue/language-tools at all even if the reproduction was similar.Please update to v4.2.10
This is great, thank you for your work.
Describe the bug
Vscode intellisense autocompletion tooltip is not working for custom render components.
TresPerspectiveCamera (custom renderer):
TresCanvas (actual vue component):
Reproduction
https://stackblitz.com/~/edit/tresjs-minimal-reproduction?file=package.json
Steps to reproduce
No response
System Info
Used Package Manager
pnpm
Code of Conduct