-
Notifications
You must be signed in to change notification settings - Fork 12k
App appears to not transpile correctly to ES5, breaking in IE11 #5306
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
Comments
Your inline bundle (i.e. the transpiled code) actually contains |
The JS actually contains |
I upgraded to the RC1 this morning and still have no luck. |
Where does the InvertedIndexNode class come from? It's in your vendor bundle so I'm assuming it's a third party lib. |
I actually found it this morning, but am not quite got the cause narrowed down. It is a node module that is distributed in ES6 with typings, and apparently the CLI is no longer transpiling that code. I fixed it by just grabbing the backing TypeScript and putting it in a library folder locally and compiling it. I will report back when I figure out what changed in tye CLI config when I upgraded. |
The node module in question is the ndx elastic search, which is awesome and worked great even in IE11 until recently. |
Uhm if the end JS has |
Hi, have you found a fix @jasoninrapid? I'm facing same issue now. |
Maybe it will be usefull but I just changed tsconfig.json property compilerOptions->lib from [es6, dom] to [es5, dom] and Syntax Error disappeared in IE 11. |
@alexander-kovalev Didn't work for me :\ |
also not work for me.... |
Not working for me. Throws error in IE 11 modules[moduleId].call(module.exports, module, module.exports, webpack_require);. This error occurs when trying to add loadChildren as call back function instead of string. When I try to provide path as string, it errors out saying cannot find module |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Windows 8.1
Versions.
@angular/cli: 1.0.0-rc.1
node: 7.5.0
os: win32 x64
@angular/common: 2.4.9
@angular/compiler: 2.4.9
@angular/core: 2.4.9
@angular/forms: 2.4.9
@angular/http: 2.4.9
@angular/platform-browser: 2.4.9
@angular/platform-browser-dynamic: 2.4.9
@angular/router: 3.4.9
@angular/cli: 1.0.0-rc.1
@angular/compiler-cli: 2.4.9
(I upgraded to the RC1 release this morning and still have no luck.)
Repro steps.
I have an @ngrx based app that works fine in Chrome and Firefox. In IE11 I get an syntax error when the browser encounters a class keyword in
inline.bundle.jsvendor.bundle.js:Later I get "Unable to get property 'call' of undefined or null reference" from a line in inline.bundle.js, where it appears webpack is attempting to load a moduleId that doesn't exist in modules:
Here is my tsconfig:
Here is polyfills.ts:
The log given by the failure.
Mention any other details that might be useful.
It seems like this isn't transpiling to ES5.
The text was updated successfully, but these errors were encountered: