TypeError: decorated is not a function
at client_api.js:120
at withSubscriptionTracking (client_api.js:150)
at client_api.js:118
at storyFn (story_store.js:357)
at renderMain (render.js:65)
at renderMain (start.js:205)
at StoryStore.renderUI (start.js:231)
at StoryStore.emit (index.js:180)
at story_store.js:239
Expected behavior
Storybook should work.
Screenshots
Code snippets
Currently only attempting to load storybook with only one component in order to isolate where it breaks:
function loadStories() {
require('../docs/Button/Button.story');
}
The code breaks when attempting to load any storybook 'storiesOf' component.
Describe the bug Attempting to update from
3.4.7
to5.1.8
(also previously attempted update to4.1.6
but had the same error)To Reproduce Steps to reproduce the behavior:
Expected behavior Storybook should work.
Screenshots
Code snippets Currently only attempting to load storybook with only one component in order to isolate where it breaks:
The code breaks when attempting to load any storybook 'storiesOf' component.
package.json
System:
Additional context updated to babel 7 in custom webpack.config.js file