You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.
$ tsc # no error
$ node tss.js
Error: Cannot find global value 'Promise'.
at TypeScriptSimple.toJavaScript (O:\a\node_modules\typescript-simple\index.js:162:23)
at TypeScriptSimple.compile (O:\a\node_modules\typescript-simple\index.js:73:25)
at Object.<anonymous> (O:\a\tss.js:6:5)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Function.Module.runMain (module.js:605:10)
at startup (bootstrap_node.js:158:16)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
TypeScriptSimple cannot compile codes to ES5 that using Promise (that tsc can do it).
So also espower-typescript cannot compile codes to ES5 and test fails.
minimal example:
package.json
tsconfig.json
a.ts
tss.js
The text was updated successfully, but these errors were encountered: