Open herzaso opened 1 year ago
with npx
it did work:
npx storybook@latest init
Need to install the following packages:
storybook@7.0.4
Ok to proceed? (y) y
storybook init - the simplest way to add a Storybook to your project.
(node:4347) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
• Detecting project type. ✓
Detected Vite project. Setting builder to Vite
• Adding Storybook support to your "React" app
added 923 packages, and audited 924 packages in 34s
156 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
. ✓
• Preparing to install dependencies. ✓
up to date, audited 924 packages in 857ms
156 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
. ✓
🔎 checking possible migrations..
╭ No migrations were applicable to your project ────────────────────────────────────────────────────────────────────────────────────────────────────╮│ ││ If you'd like to run the migrations again, you can do so by running 'npx storybook@next automigrate' ││ ││ The automigrations try to migrate common patterns in your project, but might not contain everything needed to migrate to the latest version ││ of Storybook. ││ ││ Please check the changelog and migration guide for manual migrations and more information: https://storybook.js.org/migration-guides/7.0 ││ And reach out on Discord if you need help: https://discord.gg/storybook ││ │╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
For more information visit: https://storybook.js.org
To run your Storybook, type:
npm run storybook
Describe the bug
running
yarn dlx storybook@latest init
fails on new vite project.Steps to reproduce: create a new project with
yarn create vite test-storybook --template react-ts
cd into the directory and run the command above to init storybook.The command fails with the following output:
To Reproduce
Irrelevant since the installation fails
System
Additional context
No response