Stack Overflow Asked by temporary_user_name on July 29, 2020
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 REACT
, REACT_PROJECT
, and WEBPACK
.
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
Try this.
npx -p @storybook/cli sb init --type react
or
npx -p @storybook/cli sb init --type react_scripts
This will work.
Answered by Taimoor Ahmed on July 29, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP