Skip to content

no Ref and ComputedRef defined in vue2.x, but you use in vue-router2.6.1 #3779

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

Closed
lakalakaka opened this issue Aug 24, 2022 · 2 comments
Closed

Comments

@lakalakaka
Copy link

see the capture

image

@vue-bot
Copy link

vue-bot commented Aug 24, 2022

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!

@wal0x
Copy link

wal0x commented Nov 10, 2022

vue-router ^2.6.0 tries to import types ComputedRef and Ref from vue. This two type exists in vue ^2.7.X.

In the change log they claim that 2.6.0 will not affect vue 2.6 user. It's true only if you activate SkipLibCheck in your tsconfig.json
https://github.com/vuejs/vue-router/blob/dev/CHANGELOG.md#360-2022-08-22

Updating to vue 2.7 if possible should solve the issue too.

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

No branches or pull requests

3 participants