Skip to content

Unexpected token ] in JSON at position 346 #7

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

Closed
tjmcdonough opened this issue Jun 2, 2023 · 1 comment
Closed

Unexpected token ] in JSON at position 346 #7

tjmcdonough opened this issue Jun 2, 2023 · 1 comment

Comments

@tjmcdonough
Copy link

I am getting the following error when trying to run npm run exercise 01. Any ideas why?

PS C:\Projects\react-typescript-tutorial> npm run exercise 01

> [email protected] exercise
> tt-cli run 01

undefined:16
  ]
  ^

SyntaxError: Unexpected token ] in JSON at position 346
    at JSON.parse (<anonymous>)
    at runExercise (C:\Projects\react-typescript-tutorial\node_modules\@total-typescript\exercise-cli\dist\bin.js:55:25)
    at Command.<anonymous> (C:\Projects\react-typescript-tutorial\node_modules\@total-typescript\exercise-cli\dist\bin.js:140:26)
    at Command.listener [as _actionHandler] (C:\Projects\react-typescript-tutorial\node_modules\commander\lib\command.js:482:17)
    at C:\Projects\react-typescript-tutorial\node_modules\commander\lib\command.js:1283:65
    at Command._chainOrCall (C:\Projects\react-typescript-tutorial\node_modules\commander\lib\command.js:1177:12)
    at Command._parseCommand (C:\Projects\react-typescript-tutorial\node_modules\commander\lib\command.js:1283:27)
    at C:\Projects\react-typescript-tutorial\node_modules\commander\lib\command.js:1081:27
    at Command._chainOrCall (C:\Projects\react-typescript-tutorial\node_modules\commander\lib\command.js:1177:12)
    at Command._dispatchSubcommand (C:\Projects\react-typescript-tutorial\node_modules\commander\lib\command.js:1077:23)

Node.js v18.16.0
@mattpocock
Copy link
Collaborator

Is this still happening? I think I made some changes upstream that fix this bug. Closing pre-emptively.

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