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

oriole init fails with unexpected token i in JSON #56

Closed
brleinad opened this issue Sep 16, 2021 · 2 comments
Closed

oriole init fails with unexpected token i in JSON #56

brleinad opened this issue Sep 16, 2021 · 2 comments

Comments

@brleinad
Copy link

brleinad commented Sep 16, 2021

I did a oriole setup added my personal access token and account ID and then when running oriole init inside a repo I got the following:

> oriole init
🕐  Loading...
/Users/danielrb/open/oriole/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
        throw ex;
        ^

SyntaxError: Unexpected token i in JSON at position 8
    at JSON.parse (<anonymous>)
    at /Users/danielrb/open/oriole/build/commands/init.js:857:25

I will continue to investigate but any help would be useful.

@brleinad
Copy link
Author

I was able to get it working by

  1. I ran oriole setup again and made sure I had the right info
  2. Navigated to the top directory of the repo (I noticed I was not at the top directory of the repo earlier, not sure if this is related)
  3. Ran oriole init again and this time it worked 🎉

@injoongy
Copy link
Owner

Nice - this is a great find. I don't think I've tested running init inside folders in a repo, and not at the top level. I'll investigate this further and see if a fix is needed - thanks!

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

No branches or pull requests

2 participants