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

Trying to run getstorybook shows uninformative error #1874

Closed
rjbergerud opened this issue Sep 20, 2017 · 4 comments
Closed

Trying to run getstorybook shows uninformative error #1874

rjbergerud opened this issue Sep 20, 2017 · 4 comments

Comments

@rjbergerud
Copy link

rjbergerud commented Sep 20, 2017

I run getstorybook and it prints the following error

Unexpected token } in JSON at position 2878

I have no file named JSON in my project. This is an error with my project, but it would be helpful if getstorybook would print out a more informative message/stacktrace.

@danielduan
Copy link
Member

check your package.json?

@rjbergerud
Copy link
Author

Yeah, it was there.

@danielduan
Copy link
Member

danielduan commented Sep 24, 2017

If you have a link to your repo, we can probably take a look at it for you. It sounds like you have an extra } somewhere.

getstorybook reads your package.json to determine what type of project it is and installs the appropriate scripts. I don't know what more we can do to get a more useful error message.

@rjbergerud
Copy link
Author

@danielduan thanks, I found it ;)

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

2 participants