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

init fails if running in an existing TS project #32

Closed
beatfactor opened this issue Jul 20, 2022 · 2 comments · Fixed by #39
Closed

init fails if running in an existing TS project #32

beatfactor opened this issue Jul 20, 2022 · 2 comments · Fixed by #39
Assignees
Labels
bug Something isn't working

Comments

@beatfactor
Copy link
Member

beatfactor commented Jul 20, 2022

If running npm init nightwatch in an existing TS project, the initialization fails with SyntaxError:

Installing the following packages:
- @types/nightwatch

Installing @types/nightwatch
Done! 

SyntaxError: Unexpected token } in JSON at position 438
    at JSON.parse (<anonymous>)

See also #33

@beatfactor beatfactor added the bug Something isn't working label Jul 20, 2022
@garg3133
Copy link
Member

garg3133 commented Jul 20, 2022

This seems to be due to a syntax error in the tsconfig.json file of your existing TS project.

@beatfactor
Copy link
Member Author

No, the tsconfig.json is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: Shipped
Development

Successfully merging a pull request may close this issue.

3 participants