_ctx.route is not a function in storybook #619
-
Hi. I created an app with Vue3, Laravel and ziggy-js. However, I got an error when I made a story.
For example... <Button v-if="!course" :href="route('top')" primary quick>TOP</Button> Is there any way to resolve this error? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
What's the entire component/store/file that error is coming from? I'm not super familiar with storybook but you'll need to make sure the |
Beta Was this translation helpful? Give feedback.
What's the entire component/store/file that error is coming from? I'm not super familiar with storybook but you'll need to make sure the
route()
function is available in your story, either by installing the Ziggy Vue plugin or manually importing it and setting it up.