-
-
Notifications
You must be signed in to change notification settings - Fork 535
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
es6 compile errors with no location information #24
Comments
You need to use Edit: Make sure you don't have both - |
I set up a gulpfile.js to load my renamed gulpfile.ts using the instructions here (substituting typescript-register with ts-node/register) but the error remains the same. Is there a guide for how to use ts-node with gulp? |
No guide. You just create a |
yep, that worked. All is good. You should put a note about using Gulpfile.ts in your readme.md |
I spoke too soon; I had forgotten to redo the es6/await changes in my test. I'm still getting
|
I do have a tsconfig.json |
@arolson101 You're compiling to ES6. Set it to |
But that won't work because you're using [edit: certain] ES6 features, so what you should do is what the directions say. |
But which file? And why does it compile fine under tsc but not ts-node? -ARO
|
It does compile using Edit: |
The issue is you're compiling to ES6 in |
Ahhhh. Ok then. Thanks for the help!
|
No worries, I'll add some docs on node/gulp/typescript interop when I have a chance - just made an issue to track that. You should be able to use multiple |
Looking around the web, it seems that normally nodejs would report the line that has the problem; this is what ts-node is not doing. For example:
ts-node is missing the line & error indicators. For instance:
|
I'm trying to switch over to the latest typescript so that I can use async/await inside a mocha test. My tsconfig specifies es6 and module commonjs. If I run tsc from the command-line it reports no errors, but when I run from gulp (which registers ts-node) I get this error.
So problem (1) is that there shouldn't be a difference between tsc and ts-node (I have typescript@next installed locally and globally), and (2) is that the output gives no indication of where (file/line) the error was found
The text was updated successfully, but these errors were encountered: