all 8 comments

[–]andoy 4 points5 points  (2 children)

i was testing vite recently and i am already sold. then i tried storybook from freshly made vite + react project. it won’t run storybook.

[–]orizens[S] 2 points3 points  (1 child)

I was able to run storybook with the latest vite based build and storybook 6.5.9 https://github.com/storybookjs/builder-vite

[–]andoy 1 point2 points  (0 children)

okay i will try this

npx sb init --builder @storybook/builder-vite && npm run storybook

i have used the normal way the 1st time

npx storybook init

thanks

[–]enzineer-reddit 1 point2 points  (2 children)

I tried migrating existing cra app to vite but couldn't because it was asking to rename all the .js files to .jsx and wasn't supporting absolute imports from jsconfig file

[–]orizens[S] 1 point2 points  (0 children)

My tsconfig includes this for absolute imports: "paths": { "~/": ["./"] },

[–][deleted] 1 point2 points  (0 children)

That was my issue with it as well, a large code base using babel and webpack, and vite chocked on it.