Skip to content

docs: add explicit import #1211

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
wants to merge 1 commit into from
Closed

docs: add explicit import #1211

wants to merge 1 commit into from

Conversation

Sumurai8
Copy link

The syntax used to be import VueRouter from 'vue-router', but this does not seem to work anymore. With some experimentation this seems to be the required syntax, but I can't find the documentation for that anywhere. With this change it will be clear from the code snippet how to properly import the router.

Adds undocumented import statement to code snippet to make it clear how to properly import the router.
@posva
Copy link
Member

posva commented Nov 21, 2021

This is actually intentional. There is an open issue about it

@posva posva closed this Nov 21, 2021
@Sumurai8
Copy link
Author

I am guessing you are referring to this cryptic issue from 7 months ago. I fail to see how that issue detailing a full rewrite of the docs prevents us from having the short-term benefit of mentioning anywhere how to import the router. As I see it, you can do both, and it prevents people from bumping in yet another roadblock while trying out this version of the router while you improve the docs long-term.

@Sumurai8 Sumurai8 deleted the patch-2 branch November 21, 2021 09:15
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

Successfully merging this pull request may close these issues.

2 participants