-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Vue-router can not work properly in the typescript2.0 environment #1170
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
Comments
I guess |
Can you submit a PR in that case? |
I have submitted a PR in click here, you can reproduce the bug with the demo project I have given and fix my bug based on my PR. @posva |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use vue2.0 and typescript2.0, as well as vue-router2.0 as my development technology stack, which is my project template —— template,You run this project (
npm run dev
), you will find the error as follows:vue-typescript-template-ui\node_modules\vue-router\types\router.d.ts
(2,10): error TS2305: Module '"vue"' has no exported member 'ComponentOptions'.
.......
Does it have a problem with the type declaration file of vue-router2.0 ?
The text was updated successfully, but these errors were encountered: