I’m installing Storybook in my JS+React repo. It said it was unable to detect my project type and asked me to manually choose between several. Among the options were
I can find no documentation explaining the difference between the first two, and I’m also unsure what’s meant by
WEBPACK since of course many projects use both React and Webpack as they serve entirely different functions (as opposed to React vs Angular, which you are less likely to find side by side.)
So how do you choose among these for a project that uses both React and Webpack?
sometime it happens Storybook wont detect you are using REACT.
you simply have to tell you are using React or force it to Use React
npx -p @storybook/cli sb init --type react
npx -p @storybook/cli sb init --type react_scripts
This will work.
Answered by Taimoor Ahmed on July 29, 2020
1 Asked on October 13, 2020 by knguyen
1 Asked on October 11, 2020 by user12344
3 Asked on October 11, 2020 by reizo
1 Asked on October 10, 2020 by gonzalo-polo
2 Asked on October 9, 2020 by nguyenvivian
0 Asked on October 8, 2020 by paul-martnez-llerena
2 Asked on October 8, 2020 by vldcndn
1 Asked on October 7, 2020 by solar
1 Asked on October 7, 2020 by theoriginof3
1 Asked on October 7, 2020 by user1999453
3 Asked on October 7, 2020 by deitch
2 Asked on October 6, 2020 by raj-endla
0 Asked on October 6, 2020 by madara
1 Asked on October 3, 2020 by singh
0 Asked on October 2, 2020 by turqay-umudzade
3 Asked on October 1, 2020 by pythoncreator
2 Asked on October 1, 2020 by user716255
1 Asked on September 30, 2020 by defarm
Get help from others!