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

4.2.0 vue-router.d.ts BUG: $route does not exist #1844

Closed
cturconde opened this issue May 12, 2023 · 2 comments
Closed

4.2.0 vue-router.d.ts BUG: $route does not exist #1844

cturconde opened this issue May 12, 2023 · 2 comments

Comments

@cturconde
Copy link

Reproduction

Property '$route' does not exist on type 'CreateComponentPublicInstance

Steps to reproduce the bug

When compile, run or build the error appears: Property '$route' does not exist on type 'CreateComponentPublicInstance

Just on version 4.2.0 due to -> declare module 'vue' on vue-router.d.ts file in node_modules/vue-router/dist/

Fix this this version with ---> declare module '@vue/runtime-core'

Until that, just version 4.1.6 is usable.

Expected behavior

Find variable $router

Actual behavior

Can not finde variable $router

Additional information

No response

@cturconde cturconde changed the title 4.2.0 vue-router.d.ts BUG 4.2.0 vue-router.d.ts BUG: $route does not exist May 12, 2023
@posva
Copy link
Member

posva commented May 12, 2023

Duplicate of #1843

@posva posva marked this as a duplicate of #1843 May 12, 2023
@posva posva closed this as not planned Won't fix, can't repro, duplicate, stale May 12, 2023
@vuejs vuejs locked and limited conversation to collaborators May 12, 2023
@posva
Copy link
Member

posva commented May 12, 2023

Please, search existing issues and pull requests before opening issues, it saves maintainers a lot of time 🙏

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

No branches or pull requests

2 participants