NickMcBurney / storybook-vue3-router

A Storybook decorator that allows you to use Vue 3 / vue-router@4 routing-aware components.
MIT License
29 stars 8 forks source link

Support the useLink composable #23

Closed soutoigor closed 2 years ago

soutoigor commented 2 years ago

Now with Vue 3 it's common that we use the useLink composable., and currently it's not being supported by the addon.

The errors: [Vue warn]: injection "Symbol([vue-router]: route location)" not found. and TypeError: Cannot read properties of undefined (reading 'resolve') are given.

NickMcBurney commented 2 years ago

@soutoigor can you provide a repo link?

I've tested this and it seems to be working as expected:

The error you're getting seems to be related to it looking for a route which is not defined, have you setup the custom route options as shown in readme?

NickMcBurney commented 2 years ago

@soutoigor I'll close issue if I dont hear back from you within the next week, please let me know if you're still having issues.

NickMcBurney commented 2 years ago

Closed due to inactivity and lack of reproduction details.