-
Notifications
You must be signed in to change notification settings - Fork 12k
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
No IE11 Support Even AFTER Including Polyfills #7776
Comments
I found a fix. Apparently, in one of my 3rd party components (ng2-smart-table to be exact) I had made modifications to the code in order to achieve something I required for my project. My guess is that for(variable of object){} loops aren't supported? old code:
fixed code:
For anyone reading this in the future with similar issues, check for things like this. |
I added Given the polyfills.ts file I added it like this:
Also see #4128 |
i needed to add import 'core-js/es6/array'; Thanks @kwa !! |
Even after adding |
I agree with @bpaans. I have an Angular 5 app and still getting an error
after adding |
You need to set tsconfig.json compilerOptions :
It solved 'includes' issue for me. |
I am really pissed of same solution everyone is giving which is not working..... |
me too 👎 |
Using the above polyfills worked fine in IE11 for me. @harishrajanna @AnkushChaudhary517 If it doesn't work for you a more detailed explanation about your build process, app structure, dependencies and error message is likely needed to get any meaningful help. There are a lot of things that could simply fail in IE11. Might be more worth taking it up as a question in stackoverflow. |
I do have the same problem. I've set the
Still get I also added all polyfills + the |
Anyone found the solution for angular 4 applications ? |
Any resolutions for this, the above ones dont work for me? |
Same issue, the error occurs at the following line in function
Tried all suggestions mentioned in this issue. Only cause trouble in IE11, where Firefox and Chrome works fine. In 2018 it's still a pain when you're forced to support IE... |
Same issue as @weber-d, only in IE11 and event then not always... only after repeated reloads |
I'm having this issue, and none of the above fixes work. |
I'm having this issue only after a live-reload occurs with the Developer Tools open. No issue with Chrome and Firefox, but if I have the Developer Tools open in IE11 and save a change to my typescript, nearly 100% of the time, I get these errors upon reload. |
Tried all of the above fixes and none work for me. Seems to be coming from when Edit: Did not see the comment above, which worked for me. It is unbelievable that IE's Developer Tools is actually causing this problem. Microsoft sure knows how to make a browser. |
Anyone found the solution for angular 4 or 5 applications ? Thanks |
For the folks who are running into this, can I ask what your testing environment is? Have you tried running your apps in different environments, like different virtual machines, and physical machines? Have you made sure your IE 11 is the very latest? I'm asking, because I found our app was actually running perfectly once I fired it up in VirtualBox, as opposed to our previous testing environment, which was SauceLabs. We do not have a physical device to test on, though I've asked for one several times. |
Angular 6 is in full release. Has anyone tried it to see if this issue persists? I've heard it uses a new major version of Webpack. |
I had same issue. Couldn't find solution anywhere so I decided to copy project piece by piece each time checking if it works on IE. Finally I found problem. |
@joshrouwhorst seems to be on the right track. IE11 dying on this line: modules[moduleId].call(module.exports, module, module.exports, webpack_require); So I tried with live-reload disabled using: ng serve --live-reload=false -o That changed the problem to: modules[moduleId].call(module.exports, module, module.exports, webpack_require); But now I'm stuck and none of the solutions here works :( FYI I determined moduleId by using breakpoints on the failing line EDIT 2 solutions: (1) upgrade to ng6 - this is a webpack issue, ng5 uses webpack 2, ng6 uses webpack 4, so the upgrade will prob fix it PS Can't give feedback on how my attempt went since I'm parking this for now. |
I was able to make it work in IE, Edge and Firefox. It was the problem. By placing the following: import 'core-js / es6 / symbol'; import 'classlist.js'; what made it work on Edge and Firefox was by adding these two imports and installing via NPM.
Final setup to work in IE was what the friend @ArtMuS91 . |
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. |
Bug Report or Feature Request (mark with an
x
)Versions.
@angular/cli: 1.4.2
node: 6.11.2
os: win32 x64
@angular/animations: 4.4.3
@angular/cdk: 2.0.0-beta.10
@angular/common: 4.3.6
@angular/compiler: 4.3.6
@angular/core: 4.3.6
@angular/forms: 4.3.6
@angular/http: 4.3.6
@angular/material: 2.0.0-beta.10
@angular/platform-browser: 4.3.6
@angular/platform-browser-dynamic: 4.3.6
@angular/router: 4.3.6
@angular/cli: 1.4.2
@angular/compiler-cli: 4.4.3
@angular/language-service: 4.4.3
typescript: 2.3.4
Repro steps.
The log given by the failure.
SCRIPT1004: Expected ';'
vendor.bundle.js (49604,19)
SCRIPT5007: Unable to get property 'call' of undefined or null reference
bootstrap 9ae86f3cd76dd3b7dd8f (54,1)
(OR)
SCRIPT5007: Unable to get property 'call' of undefined or null reference
inline.bundle.js (55,12)
(Never both of the SCRIPT5007 errors at the same time. One or the other appears when I load the page or hit refresh)
Desired functionality.
Would like for it to work.
Mention any other details that might be useful.
I HAVE UNCOMMENTED THE LINES IN THE POLYFILL!!!!!!! PLEASE DO NOT SUGGEST THIS!!!!
Polyfills.ts:
The text was updated successfully, but these errors were encountered: