Closed chrisolsen closed 1 year ago
Please try upgrading to version 0.2.6 of this package. The latest version of react-docgen went to ESM only, which causes us trouble. Version 0.2.6 pins it to the version that works correctly.
Thanks Ian, that helped. After updating to v0.2.6 I then got the error
error:0308010C:digital envelope routines::unsupported
Setting NODE_OPTIONS=--openssl-legacy-provider
then allows storybook to start up, but I am not sure if there is a better solution or not.
The other solution if you're using node 18 is to upgrade to storybook 7.0, currently in beta. npx sb@next upgrade --prerelease
Could we document this in the doc please. It took me hours figuring out this error before finding this issue. 😞
Which error do you mean, @nazmiboxed? The original one should no longer be an issue. We can document the node.js 18 limitation though.
What version of
vite
are you using?3.2.5
System info and storybook versions
System: OS: Linux 5.15 Zorin OS 16.2 CPU: (16) x64 AMD Ryzen 7 3700X 8-Core Processor Binaries: Node: 18.12.1 - ~/.nvm/versions/node/v18.12.1/bin/node npm: 8.19.2 - ~/.nvm/versions/node/v18.12.1/bin/npm Browsers: Firefox: 107.0 npmPackages: @storybook/addon-essentials: ~6.5.9 => 6.5.15 @storybook/builder-vite: 0.2.5 => 0.2.5 @storybook/core-server: ~6.5.9 => 6.5.15 @storybook/react: ~6.5.9 => 6.5.15
Describe the Bug
Link to Minimal Reproducible Example
https://github.com/chrisolsen/vite-storybook-issue
I have also tried getting two bare bones project working, using both pnpm and npm, but get the same error posted above for both cases.
Participation