-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
v2.1.4 reports error on global properties although properly augmented #4793
Comments
This seems similar to: #3947 |
Also noticing that this now fails in build as well, so it's not just an issue with the language tools? Something different with a Vue update? Looks like a However, after upgrading builds no longer work with vite:
After upgrading
After finding this random comment that states that
After finding yet another comment (Thank god these repos don't drive people to information black holes like discord) that advised pinning Unfortunately after this whole depressing saga, global properties STILL fail to compile. So it's still skuffed after updating apparently as close to latest as possible. Also apparently various other things are broken as well like like typings for things like Looks like this is also skuffed: Alright, after adding Related threads:
|
This also seems to be a problem for |
Due to our past use of |
Anyway, I suggest that you first bump all your dependencies to the latest version, and try searching for If the issue persists after making these changes, I believe we need a minimal reproduction to pinpoint the root cause of the problem. |
I have also encountered this issue on the latest version of nuxt. Only in the template, the vscode plugin cannot correctly recognize the automatically exported functions. I don't know where the source of the problem is, and whether it is due to the vscode plugin |
Here is a minimal reproduction to highlight the error coming in nuxt 3. @KazariEX https://stackblitz.com/edit/github-vw7ht4?file=nuxt.config.ts |
So, for others here the guidance appears to be this: Any library that use the legacy syntax
|
Or make PRs to the libraries you use. While waiting for it to get merged you can point towards your own fork in package.json. |
I did not upgrade nuxt. I just switched from npm to pnpm and reinstalled the dependencies. It was solved. It should be a problem of dependencies version. but I don't know which dependencies |
Vue - Official extension or vue-tsc version
v2.1.4
VSCode version
1.92.2
Vue version
3.4.38
TypeScript version
5.4.5
System Info
No response
package.json dependencies
Steps to reproduce
Upgrade extension to v2.1.4
What is expected?
That global augmented propeties work
What is actually happening?
They don't.
Link to minimal reproduction
No response
Any additional comments?
The text was updated successfully, but these errors were encountered: