Describe the bug
Installing the addon as described and adding a note does not cause anything to appear in the notes pane.
To Reproduce
Follow the steps as described in the documentation.
Expected behavior
The note I specified would appear.
Code snippets
config.js
import { configure,addDecorator } from '@storybook/vue'
import { withNotes } from '@storybook/addon-notes'
const req = require.context('../src/stories', true, /stories\.js$/)
const loadStories = () => req.keys().forEach(filename => req(filename))
addDecorator(withNotes)
configure(loadStories, module)
stories.js
import { storiesOf } from '@storybook/vue'
import Component from '../../components/Component.vue'
const stories = storiesOf('Component', module)
stories.add('basic example', () => ({
components: { Component },
notes: 'hello world',
template: `<component></component>`
}))
System:
Try this instead:
stories.add('basic example', () => ({
components: { Component },
template: `<component></component>`
}), {
notes: 'hello world',
});
Would be great when this would be documented on the page of the notes addon.
Most helpful comment
Try this instead: