#Storybookjs fails to run when run in the Vite React-TS project with NodeJS 18.

3 messages · Page 1 of 1 (latest)

cold fjord
#

I am providing the screenshot here for the exact error. It has something to do with one of the libraries used in Storybook 6.5 which doesn't support NodeJS 18.

Also, don't understand why babel and other stuff is being added in the Vite React project.

wooden mantle
#

Yes, 6.5 does not support node 18 with the vite or webpack4 builders without a flag. You can upgrade to sb 7.0 using npx sb@next upgrade --prerelease, or use --openssl-legacy-provider.

#

To answer your other question, vite uses babel for react fast-refresh.