Skip to content
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

Closed
jason-ivy opened this issue Sep 22, 2016 · 16 comments
Closed

Offer options when project type cannot be determined automatically #475

jason-ivy opened this issue Sep 22, 2016 · 16 comments

Comments

@jason-ivy
Copy link

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.

@jason-ivy jason-ivy changed the title getstory Error : Unsupported Project type getstorybook Error : Unsupported Project type Sep 22, 2016
@thani-sh
Copy link
Contributor

Hi,
Can you run it from the directory which has the package.json file.

@arunoda
Copy link
Member

arunoda commented Sep 22, 2016

@jeffrygan anyway, you can start here: https://storybook.js.org/basics/slow-start-guide/

@jason-ivy
Copy link
Author

@mnmtanish the project already has package.json.
@arunoda I do this way, but complicated procedures

@arunoda
Copy link
Member

arunoda commented Sep 22, 2016

@jeffrygan we detect your project type based on the package.json.
We'd like to see it or the repo to fix the original issue.

Here's the detection logic we are doing: https://github.com/storybooks/storybook/blob/master/lib/cli/lib/detect.js

@jason-ivy
Copy link
Author

@arunoda thx, I only init the package.json without install react or anything. I have to install react first.

@arunoda
Copy link
Member

arunoda commented Sep 22, 2016

Ah okay. Cool.

@batjko
Copy link

batjko commented Jan 18, 2017

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....

@akatech
Copy link

akatech commented Jun 12, 2017

Hi gys, i need help
Detecting project type. ✓
Unsupported Project type. (code: UNDETECTED)
Visit https://storybook.js.org for more information.

@usulpro
Copy link
Member

usulpro commented Jun 12, 2017

Hi @akatech !
what is your actual project type?
If getstorybook cant work with it you can try to do it manually

@marcushenrique
Copy link

marcushenrique commented Aug 1, 2017

@akatech like @jason-ivy said, I had to install react first but I don't know why this is not automatic.

@alterx
Copy link
Member

alterx commented Aug 2, 2017

@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.

@jomarquez
Copy link

jomarquez commented Aug 11, 2017

the project I am trying to install ui-storybook is using angular. i am running sb-create in the same location my package.json is located.

i am getting the same error as above

Detecting project type
    Unsupported Project type. [code: UNDETECTED]. For now SB support only Angular 1 projects.

My project does not use React. Should I still install React to get this working. Also, where is the slow-start guide located?

@Hypnosphi
Copy link
Member

It would be handy to show a prompt with options when automatic detection fails

@Hypnosphi Hypnosphi reopened this Aug 12, 2017
@Hypnosphi Hypnosphi self-assigned this Aug 12, 2017
@Hypnosphi Hypnosphi changed the title getstorybook Error : Unsupported Project type Offer options when project type cannot be determined automatically Aug 12, 2017
@Hypnosphi
Copy link
Member

Hypnosphi commented Aug 12, 2017

@jomarquez we don't have sb-create command. Looks like you're trying to use another similar tool thats seems to support Angular 1, so you can open an issue about supporting later versions there.

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.

@chennn1990
Copy link

try installing react & react-dom

@Hypnosphi
Copy link
Member

A more human-friendly message is printed since version 3.3.0-alpha.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests