You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here you created two stories. But you missed to add the Knobs decorator to the second story.
// src/stories/index.jsimport{storiesOf}from'@storybook/vue';import{withKnobs,number}from'@storybook/addon-knobs/vue';// ...// first story (this is an empty story)conststories=storiesOf('Storybook Knobs',module);stories.addDecorator(withKnobs);// ...// second storystoriesOf('path/to/Component',module).addDecorator(withKnobs)// TODO: this line should fix your error.add('componentName',()=>{consthighlightTagId=number('highlightTagId',64)// ...})
Issue details
I just want add
@storybook/addon-knobs/vue
to storybook, but it not work, could you tell me how to use 'addon-knobs' for vue components please,thanksIt throw
Steps to reproduce
Storybook and other modules version
@storybook/vue@3.3.12
@storybook/addons@3.3.12
vue@2.5.13
Affected platforms
Screenshots
The text was updated successfully, but these errors were encountered: