We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
When creating a story and using the auto title feature of CSF 3, storybook encounter the following error when opening storybook in the browser:
Error reading preview.js: TypeError: path__WEBPACK_IMPORTED_MODULE_16___default().join is not a function autoTitleFromSpecifier autoTitle.js:69 autoTitle autoTitle.js:77 addStoriesFromExports StoryStoreFacade.js:181 getProjectAnnotations start.js:132 getProjectAnnotations start.js:127 _runResolutions index.js:217 _runResolutions index.js:214 then index.js:67 getProjectAnnotationsOrRenderError PreviewWeb.js:140 initialize PreviewWeb.js:118 configure start.js:148 configure index.js:21 js generated-stories-entry.js:6
To Reproduce Check out my example repo and run:
git clone https://github.com/amuttsch/storybook-yarn3-autotitle.git cd storybook-yarn3-autotitle yarn install yarn storybook
Open http://localhost:6006 and open the browser console. Storybook won't load and the console shows the error above.
http://localhost:6006
I migrated the Button.stories.jsx to CSF3. The current workaround is to give the story an explicit title:
Button.stories.jsx
export default { component: Button, title: 'Button' };
System Environment Info:
System: OS: Linux 5.15 Arch Linux CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz Binaries: Node: 16.13.0 - /tmp/fnm_multishells/156288_1638539582250/bin/node Yarn: 3.1.1 - /usr/bin/yarn npm: 8.1.0 - /tmp/fnm_multishells/156288_1638539582250/bin/npm Browsers: Firefox: 94.0.2
Additional context A workaround is to install path using yarn add path or to fix the package extensions manually in .yarnrc.yml:
path
yarn add path
.yarnrc.yml
packageExtensions: "@storybook/store@*": dependencies: "path": "*"
The text was updated successfully, but these errors were encountered:
Yay!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.4.8 containing PR #16913 that references this issue. Upgrade today to the @latest NPM tag to try it out!
@latest
npx sb upgrade
Closing this issue. Please re-open if you think there's still more to do.
Sorry, something went wrong.
Version 6.4.8 fixed this issue for me, thanks for the fast PR! :-)
6.4.8
Whoopee!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.5.0-alpha.2 containing PR #16913 that references this issue. Upgrade today to the @next NPM tag to try it out!
@next
npx sb upgrade --prerelease
shilman
No branches or pull requests
Describe the bug
When creating a story and using the auto title feature of CSF 3, storybook encounter the following error when opening storybook in the browser:
To Reproduce
Check out my example repo and run:
Open
http://localhost:6006
and open the browser console. Storybook won't load and the console shows the error above.I migrated the
Button.stories.jsx
to CSF3. The current workaround is to give the story an explicit title:System
Environment Info:
System:
OS: Linux 5.15 Arch Linux
CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Binaries:
Node: 16.13.0 - /tmp/fnm_multishells/156288_1638539582250/bin/node
Yarn: 3.1.1 - /usr/bin/yarn
npm: 8.1.0 - /tmp/fnm_multishells/156288_1638539582250/bin/npm
Browsers:
Firefox: 94.0.2
Additional context
A workaround is to install
path
usingyarn add path
or to fix the package extensions manually in.yarnrc.yml
:The text was updated successfully, but these errors were encountered: