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 '$vm2' does not exist on type #2

Closed
avpavp opened this issue Mar 1, 2021 · 4 comments
Closed

Property '$vm2' does not exist on type #2

avpavp opened this issue Mar 1, 2021 · 4 comments

Comments

@avpavp
Copy link

avpavp commented Mar 1, 2021

Hi

Thanks for your component.

I'm using it successfully in debug mode. While in debug mode I do get an error though:

Property '$vm2' does not exist on type 'CombinedVueInstance<Vue, PageState....

While in debug mode this still runs correctly, but if I try and do yarn build, it fails with the same error.

Any ideas?

Thanks

@burhanahmeed
Copy link
Member

which version are you using?

@burhanahmeed
Copy link
Member

burhanahmeed commented Mar 2, 2021

I think v1.1.7 or v1.1.8 should be fine.

Tested it using debug mode and build mode no error prompted in console.

@avpavp
Copy link
Author

avpavp commented Mar 2, 2021

Hmmm... I was using v1.1.6. upgraded to 1.1.8, still getting the same error... Must be something else about my config...?

I am using typescript - might that be related?

*** Fixed

I believe it is a typescript issue. Where I'm using 'this', i changed to (this as any) and error went away. I think maybe this could also be solved if you included a types package with your package for TS?

Thanks for your package and your help!

@burhanahmeed
Copy link
Member

thanks for feedback! I will check again compatibility on TS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants