-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
New issue
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
Preact CLI with Storybook #13104
Comments
I solve the Issue: Solution
Don't close the issue In my opinion this should be added to the Preact Storybook Template, because a template should run without any configuration. |
@MunsMan can you open a PR for that? Current: https://github.com/storybookjs/storybook/blob/next/lib/cli/src/generators/PREACT/index.ts |
I am not able to reproduce your issue using 6.1, @MunsMan, could you give it a try ? |
Sadly I was able to recreate the Error: I used:
Storybook starts up again and presents me the version:
then the Webpack build fails again. It presents me a similar error message:
This is only a part of it. To keep it a bit cleaner. |
Egads!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.1.6 containing PR #13138 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
Describe the bug
I created a fresh Preact Typescript Project with
preact create typescript <nam>
added Storybook withnpx sb init
and tried to start storybook. Storybooks loaded it presets and fails while using the default Webpack.To Reproduce
Steps to reproduce the behavior:
preact create typescript preactstorybook
cd preactstorybook
npx sb init
npm run storybook
Expected behavior
Should load default examples provided by storybook and open the browser displaying the storybook.
Screenshots
Error log:
Code snippets
package.json
System
Environment Info:
System:
OS: macOS 11.0.1
CPU: (8) x64 Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
Binaries:
Node: 14.13.1 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.14.8 - /usr/local/bin/npm
Browsers:
Chrome: 86.0.4240.193
Safari: 14.0.1
npmPackages:
@storybook/addon-actions: ^6.0.28 => 6.0.28
@storybook/addon-essentials: ^6.0.28 => 6.0.28
@storybook/addon-links: ^6.0.28 => 6.0.28
@storybook/preact: ^6.0.28 => 6.0.28
Additional context
Preact GetStarted
Preact CLI Github
The text was updated successfully, but these errors were encountered: