AnswerBun.com

REACT vs REACT_PROJECT vs WEBPACK for storybook type?

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?

One Answer

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

Add your own answers!

Related Questions

NGINX gives 502 error from browsers but not from Postman

1  Asked on October 13, 2020 by knguyen

   

Python Pandas cumsum with shift of n

1  Asked on October 10, 2020 by gonzalo-polo

     

How to read only half a byte from a binary file at a time in C?

2  Asked on October 9, 2020 by nguyenvivian

         

Failed to install laravel/jetstream on laravel 8

2  Asked on October 8, 2020 by vldcndn

     

liquibase roll back with spring boot

1  Asked on October 7, 2020 by user1999453

       

How to change the order of jquery events?

0  Asked on October 2, 2020 by turqay-umudzade

   

How to == async axios value

0  Asked on September 30, 2020 by jessica-bulldog

   

Is there a way to set variable methods in Python?

1  Asked on September 30, 2020 by defarm

     

How to pull data from an array using SQL

1  Asked on September 29, 2020 by sarah

     

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir