Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.2.0 could not work with typescript 2.2.1 #6

Open
dennyx opened this issue Feb 24, 2017 · 2 comments
Open

v2.2.0 could not work with typescript 2.2.1 #6

dennyx opened this issue Feb 24, 2017 · 2 comments

Comments

@dennyx
Copy link

dennyx commented Feb 24, 2017

Hi dominhhai,
After upgrading koa-log4js to 2.2.0, it could not work well as complaining:
\node_modules\.2.2.0@koa-log4\koa-logger.js:50 return async (ctx, next) => { ^ SyntaxError: Unexpected token ( at Object.exports.runInThisContext (vm.js:76:16) at Module._compile (module.js:542:28) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19)

typescript version as:
$ tsc -v Version 2.2.1

while v2.1.0 works well;
May u kindly help on it, thanks~

@dominhhai
Copy link
Owner

@dennyx hi, thanks for your reporting.
v2.2.0 use native async-await.
If your want to use yield function, please use v2.1.0 instead of.

@dennyx
Copy link
Author

dennyx commented Feb 27, 2017

@dominhhai thanks for the kindly feedback, i will change in my code;thanks~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants