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
When upgrading an existing vue storybook project to storybook >=6.0.0, the following error is returned in the UI:
Unexpected default export without title: undefined
Error: Unexpected default export without title: undefined
at http://localhost:8080/vendors~main.d193a683a2dcb6796807.bundle.js:10575:15
at Array.forEach (<anonymous>)
at http://localhost:8080/vendors~main.d193a683a2dcb6796807.bundle.js:10568:11
at ConfigApi.configure (http://localhost:8080/vendors~main.d193a683a2dcb6796807.bundle.js:7619:7)
at Object.configure (http://localhost:8080/vendors~main.d193a683a2dcb6796807.bundle.js:10716:17)
at configure (http://localhost:8080/vendors~main.d193a683a2dcb6796807.bundle.js:12296:24)
at Object.<anonymous> (http://localhost:8080/main.d193a683a2dcb6796807.bundle.js:15102:36)
at Object../.storybook/generated-stories-entry.js (http://localhost:8080/main.d193a683a2dcb6796807.bundle.js:15103:30)
at __webpack_require__ (http://localhost:8080/runtime~main.d193a683a2dcb6796807.bundle.js:849:30)
at fn (http://localhost:8080/runtime~main.d193a683a2dcb6796807.bundle.js:151:20)
I believe storybook 6 requires that story files follow the SFC spec:
Also, with the deprecation of config.js, I believe the configure and loadStories hooks have been lost, which may be necessary for this package to work properly.
EDIT
Errors will go away be defining a title attribute on the exported Vue component. In my case I am using the Class syntax from typescript so I had to do:
While this does suppress the errors, these stories do not get loaded into the manager, which I think is related to the config.js storyloader from before.
The text was updated successfully, but these errors were encountered:
When upgrading an existing vue storybook project to storybook >=6.0.0, the following error is returned in the UI:
I believe storybook 6 requires that story files follow the SFC spec:
Also, with the deprecation of config.js, I believe the configure and loadStories hooks have been lost, which may be necessary for this package to work properly.
EDIT
Errors will go away be defining a
title
attribute on the exported Vue component. In my case I am using the Class syntax from typescript so I had to do:While this does suppress the errors, these stories do not get loaded into the manager, which I think is related to the config.js storyloader from before.
The text was updated successfully, but these errors were encountered: