简体   繁体   中英

Typescript error TS1110 & TS1005

TypeScript error: typings/node/node.d.ts(83,23): Error TS1110: Type expected. TypeScript error: typings/node/node.d.ts(1830,52): Error TS1005: '=' expected.

TypeScript compilation breaks on node.d.ts , I have tried reinstalling node.d.ts to no avail.

I had this same error when I was using typescript version 1.7.3 with node 5.0.0

I upgraded to the latest typescript, 1.8.9, and the above errors disappeared.

The hint was in node.d.ts#17:

// compat for TypeScript 1.8

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM