-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Usage with unplugin-auto-import #24
Comments
Do we need a preset for this? |
unplugin-auto-import. has presets with vue-router old version. you can rewrite it in the configuration file of unplugin-auto-import preset pr |
it's coming soon #12 |
Added a section in the Readme for this and the two exports that exist for vue-router in unplugin-auto-import |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this plugin, it's really useful to get type hints for my routes.
I'm using unplugin-auto-import and was wondering what I should do to make these two plugin gel together. According to the docs, I should replace all my
vue-router
imports to@vue-router
but that doesn't seem to work invite.config.ts
.So my config looks something like this:
Things seem to mostly work, I get type hints for my routes this way in most places (doesn't seem to work when using $route in templates though)
Am I doing things wrong or is this ok?
Update:
Things seem to break when building, I get this error as an example:
This can be fixed by manually importing
RouterLink
from@vue-router
:but I'd rather have the auto-import plugin work for me instead.
The text was updated successfully, but these errors were encountered: