atom-typescript: When target is es2015, atom complains 'Cannot find name Promise.'
When I write tsconfig.json "target:es6", no problems without /// <reference ... /> line. But when I change it to "target:es2015", atom error occurred ‘Cannot find name Promise.’
I tried with typings, i.e. es6-shim/index.d.ts is under typings folder, and @types, under node_modules/@types. In both case result are the same.
atom 1.8.0 on MacOS X atom-typescript: 8.11.0 typescript: 1.9.0-dev.20160625-1.0
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 26 (3 by maintainers)
just
lib: ['dom', 'es6]https://basarat.gitbooks.io/typescript/content/docs/types/lib.d.ts.html#lib-option (es5 is already contained in es6 and scripthost is not needed) 🌹Have you installed the nodejs typings and kept them up to date? The latest one is 6.0.0 on the dt or env repositories.