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
Expected behavior
It should compile fine. When @storybook/addon-storysource is not installed, the stories can be compiled and shown correctly.
Screenshots
TypeError: addSourceDecorator is not a function
at Module../src/components/MyButton.stories.js (http://localhost:6006/main.da02c91890c0d533134b.bundle.js:245:14)
at __webpack_require__ (http://localhost:6006/runtime~main.da02c91890c0d533134b.bundle.js:786:30)
at fn (http://localhost:6006/runtime~main.da02c91890c0d533134b.bundle.js:151:20)
at webpackContext (http://localhost:6006/main.da02c91890c0d533134b.bundle.js:95:9)
at http://localhost:6006/vendors~main.da02c91890c0d533134b.bundle.js:4727:31
at Array.forEach (<anonymous>)
at http://localhost:6006/vendors~main.da02c91890c0d533134b.bundle.js:4726:22
at Array.forEach (<anonymous>)
at http://localhost:6006/vendors~main.da02c91890c0d533134b.bundle.js:4725:14
at render (http://localhost:6006/vendors~main.da02c91890c0d533134b.bundle.js:1897:13)
Describe the bug
When writing story in CSF with import statement appear after first named export, it will throw compile error.
To Reproduce
Steps to reproduce the behavior:
npm install
andnpm run storybook
http://localhost:6006
Expected behavior
It should compile fine. When
@storybook/addon-storysource
is not installed, the stories can be compiled and shown correctly.Screenshots
Code snippets
System:
Additional context
The source as seen in devtools, you can see the
addSourceDecorator
is put lower than the calling code.The text was updated successfully, but these errors were encountered: