Problem:
Working on rebuilding my js files from Typescript src files, I went to run tsc and found this issue.
$ tsc -p tsconfig.json
error TS5014: Failed to parse file 'tsconfig.json/tsconfig.json': Unexpected token u in JSON at position 0.
Solution:
Turns out this was due to not having typescript installed properly on WSL (where I was running the compiler command).
$ npm i -g typescript
$ tsc -p tsconfig.json
By first installing typescript, I was able to properly compile my code.
Initially, I had thought this might be related to using WSL in conjunction with Windows to develop. However, this was not the case. You can read my previous post to see issues related to WSL and Windows cross development.
No comments:
Post a Comment