[Bug]: storybook init挂起在vite项目中

dpiehjr4  于 3个月前  发布在  其他
关注(0)|答案(1)|浏览(58)

描述bug

pnpm create vite example-repo --template react-ts
cd example-repo
pnpm i
storybook init

# ---

storybook init - the simplest way to add a Storybook to your project. 

 • Detecting project type. ✓
 • Preparing to install dependencies. ✓

...

Running Storybook

> storybook-hmr-hook-issue@0.0.0 storybook /home/homa/code/cyberuni/storybook-hmr-hook-issue
> storybook dev -p 6006 "--initial-path=/onboarding" "--quiet"

@storybook/cli v7.2.3

info => Starting manager..  # <-- hang here

重现步骤

  • 无响应*

系统信息

Environment Info:

  System:
    OS: Linux 5.15 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
    CPU: (16) x64 AMD Ryzen 7 5800X 8-Core Processor
  Binaries:
    Node: 18.12.1 - ~/.nvm/versions/node/v18.12.1/bin/node
    Yarn: 1.22.19 - /mnt/c/Program Files/nodejs/yarn
    npm: 8.19.2 - ~/.nvm/versions/node/v18.12.1/bin/npm
  Browsers:
    Chrome: 115.0.5790.170
  npmPackages:
    @storybook/addon-essentials: ^7.2.3 => 7.2.3 
    @storybook/addon-interactions: ^7.2.3 => 7.2.3 
    @storybook/addon-links: ^7.2.3 => 7.2.3 
    @storybook/addon-onboarding: ^1.0.8 => 1.0.8 
    @storybook/blocks: ^7.2.3 => 7.2.3 
    @storybook/react: ^7.2.3 => 7.2.3 
    @storybook/react-vite: ^7.2.3 => 7.2.3 
    @storybook/testing-library: ^0.2.0 => 0.2.0

其他相关信息

  • 无响应*
crcmnpdw

crcmnpdw1#

7.3.0上,react-webpack5也遇到了这个问题。它只是在"Starting manager..."处挂起。

➜ npm run storybook                                                                  

> storybook
> storybook dev -p 3000 --https  --host  coolbeans.com --ssl-cert ./.storybook/certs/abcde.crt --ssl-key ./.storybook/certs/abcdefu.key

@storybook/cli v7.3.0

info => Starting manager..

相关问题