nuxt-modules / device

Nuxt module for detecting device type.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add the plugin to storybook

wazolab opened this issue · comments

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 :)

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.