-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offer options when project type cannot be determined automatically #475
Comments
Hi, |
@jeffrygan anyway, you can start here: https://storybook.js.org/basics/slow-start-guide/ |
@mnmtanish the project already has package.json. |
@jeffrygan we detect your project type based on the package.json. Here's the detection logic we are doing: https://github.com/storybooks/storybook/blob/master/lib/cli/lib/detect.js |
@arunoda thx, I only init the package.json without install react or anything. I have to install react first. |
Ah okay. Cool. |
Will the quick start guide ever work without having done all the things in the slow-start guide first? The quick start implies that nothing else is necessary and it should just work "with any kind of React project", which doesn't seem to be the case, unless you have storybook package installed locally, an npm script present and all that jazz.... |
Hi gys, i need help |
@akatech like @jason-ivy said, I had to install react first but I don't know why this is not automatic. |
@marcushenrique, we support other libraries (eg. Vue), so installing React automatically wouldn't make sense for everyone. What you should do first is create a React or Vue project and after that install storybook. |
the project I am trying to install ui-storybook is using angular. i am running i am getting the same error as above
My project does not use React. Should I still install React to get this working. Also, where is the slow-start guide located? |
It would be handy to show a prompt with options when automatic detection fails |
@jomarquez we don't have But maybe you don't need to. Actually, we're working on supporting Angular 2+, you can track the progress in #269 The slow start guides are available at our website. We'll add one for Angular as soon as it will be supported. |
try installing react & react-dom |
A more human-friendly message is printed since version |
getstorybook - the simplest way to add a storybook to your project.
• Detecting project type. ✓
Unsupported Project type. (code: UNDETECTED)
Visit http://getstorybook.io for more information.
The text was updated successfully, but these errors were encountered: