First of all, I've already seen the other posts about error TS1005. Same error code, but totally different.
A simple let x: number;
will generate the error TS1005
during compilation. It's not about a missing semicolon as what the error message says, but the compiler does not recognize the let keyword. I read that maybe because of an outdated compiler.
Here's my typescript version installed using npm install -g typescript
- TypeScript version:
2.5.2
- Compiler (tsc) version:
1.0.3.0
Maybe somebody can help?
See Question&Answers more detail:os