-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
1.8.0-beta: ts.transpile now errors for .js files #6766
Comments
May we see a 1.8 branch with this fix? Currently the entire 1.8 branch is broken for us, a 1.8.3 release would be appreciated. |
@denis-sokolov this has been ported in release-1.8 a while back in #6791. do you see the same issue on |
@mhegazy, ah, sorry, I did not find that it was ported. Yes, I did all my testing on 1.8.2, I never had 1.8.0 installed. I shall double-check, just in case. Anything else to be on the lookout for? |
We believe this issue has been fixed. if you are still running into issues please file a new issue and give us more information to be able to diagnose it. |
For other people who stumble here. My problem was caused by the es6-default-import-commonjs problem, and was solved by upgrading |
The
ts.transpile
method now throws an error when given a file with a.js
extension:test.js:
output:
The actual error causing this is TS5055:
This breaks e.g. the systemjs built-in typescript transpilation:(https://github.com/systemjs/systemjs/blob/6243d0c7700ca802699796cfae0f9e213072e077/dist/system.src.js#L1210)
Looks to be caused by the changes made for
allowJs
option in #5471.The text was updated successfully, but these errors were encountered: