mockdeep / typewiz

Automatically discover and add missing types in your TypeScript code
https://medium.com/@urish/manual-typing-is-no-fun-introducing-typewiz-58e3e8813f4c
1.1k stars 46 forks source link

No such file or directory #22

Closed victorsarbu closed 6 years ago

victorsarbu commented 6 years ago

Hello! I tried to use typewiz node but I got the following error: /usr/bin/env: ‘node\r’: No such file or directory I use Linux and I guess \r is the difference between Windows and Linux path. Thank you!

urish commented 6 years ago

Thanks! I have just released typewiz-node 0.4.3 that should fix this

victorsarbu commented 6 years ago

Now I get the following errors: SyntaxError: Unexpected token } in JSON at position 4712 at Object.parse (native) at parse (/home/victor/.nvm/versions/node/v6.10.3/lib/node_modules/typewiz-node/node_modules/tsconfig/src/tsconfig.ts:195:15) at readFileSync (/home/victor/.nvm/versions/node/v6.10.3/lib/node_modules/typewiz-node/node_modules/tsconfig/src/tsconfig.ts:181:10) at Object.loadSync (/home/victor/.nvm/versions/node/v6.10.3/lib/node_modules/typewiz-node/node_modules/tsconfig/src/tsconfig.ts:151:18) at readConfig (/home/victor/.nvm/versions/node/v6.10.3/lib/node_modules/typewiz-node/node_modules/ts-node/src/index.ts:455:18) at Object.register (/home/victor/.nvm/versions/node/v6.10.3/lib/node_modules/typewiz-node/node_modules/ts-node/src/index.ts:205:18) at Object.register (/home/victor/.nvm/versions/node/v6.10.3/lib/node_modules/typewiz-node/src/index.ts:16:12) at Object. (/home/victor/.nvm/versions/node/v6.10.3/lib/node_modules/typewiz-node/src/typewiz-node.ts:5:1) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10)

urish commented 6 years ago

Hi victor, looking at the exception stack trace, it seems like it has a problem with parsing your tsconfig.json file. Can you have a look there?

Does your project run with ts-node? (typewiz-node is essentially a wrapper around ts-node)

victorsarbu commented 6 years ago

It seems my project doesn't run with ts-node. I use tsc to compile and execute my files.

2018-03-08 1:25 GMT+02:00 Uri Shaked notifications@github.com:

Hi victor, looking at the exception stack trace, it seems like it has a problem with parsing your tsconfig.json file. Can you have a look there?

Does your project run with ts-node? (typewiz-node is essentially a wrapper around ts-node https://www.npmjs.com/package/ts-node)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/urish/typewiz/issues/22#issuecomment-371322126, or mute the thread https://github.com/notifications/unsubscribe-auth/AjPxj_wAbaOTvdk6gChnif6lwnzoHsHVks5tcGx4gaJpZM4SYTn1 .

urish commented 6 years ago

Do you get a similar errors with ts-node?