Skip to content
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

Property * does not exist on type '{}'. #1584

Closed
seahindeniz opened this issue Jul 17, 2022 · 2 comments
Closed

Property * does not exist on type '{}'. #1584

seahindeniz opened this issue Jul 17, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@seahindeniz
Copy link

Hi,
I just create a new project with npm create vite@latest and tried to test Volar with Vue 3 for the first time. However, seems like there's something wrong, or I may have done something incorrect.

I have changed the initial Composition API to Options API and created some component and store states. After that, I have these errors
image

The only thing that doesn't get affected is the setVisibility action.

I'm not sure if this related to Pinia either.

Here's the MRE repo https://github.com/seahindeniz/volar-vue-js-issue

Version: 1.70.0-insider
Commit: 1cd90cceddf3c413673963ab6f154d2ff294b17c
Date: 2022-07-15T05:32:19.076Z
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: 10.0.139.17-electron.0
OS: Darwin arm64 21.5.0

@andre-aaspere
Copy link

Had same issue, downgraded Volar to 0.38 to make the error go away.

@seahindeniz
Copy link
Author

seahindeniz commented Aug 2, 2022

I didn't want to downgrade, and the only workaround I have found so far was creating the component via defineComponent function.

Here's the commit seahindeniz/volar-vue-js-issue@2618789

image

My personal opinion is that, this workaround doesn't break anything on my end and I don't have to tell my colleagues to revert it back to an older version.
It may look like a costly solution, but it actually wasn't.

@johnsoncodehk johnsoncodehk added the bug Something isn't working label Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants