Skip to content
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

Add the plugin to storybook #84

Open
wazolab opened this issue Jul 16, 2021 · 1 comment
Open

Add the plugin to storybook #84

wazolab opened this issue Jul 16, 2021 · 1 comment

Comments

@wazolab
Copy link

wazolab commented Jul 16, 2021

Hi,

I'm trying to add the plugin globally in my Storybook instance.

import Device from '@nuxtjs/device';

Vue.use( Device, { refreshOnResize: true });

But it seems that the options are not transmitted to the plugin as I'm facing the following error:
TypeError: this.options is undefined

Do you have an idea on how I can inject it into my Vue instance ?
Thanks a lot :)

@LeCoupa
Copy link
Contributor

LeCoupa commented May 24, 2023

You can't it's a nuxt module. Trying to figure out also, what would be the best way to make it work with Storybook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants