ng serve/test/e2e does not work with Internet Explorer 11
π Bug report
Command (mark with an x)
- [ ] new
- [ ] build
- [x] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Is this a regression?
Yes, the previous version in which this bug was not present was: 7.xDescription
A clear and concise description of the problem...Internet Explorer 11 does not load site when using ng serve.
Only errors in the dev console.
π¬ Minimal Reproduction
ng new ienotworking ng serve or ng serve --prod
π₯ Exception or Error
SCRIPT1002: Syntax error
polyfills.js (2891,5)
SCRIPT1002: Syntax error
vendor.js (156,1)
SCRIPT1002: Syntax error
main.js (87,24)
π Your Environment
Angular CLI: 8.0.0-rc.4
Node: 10.15.3
OS: win32 x64
Angular: 8.0.0-rc.4
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router, service-worker
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.800.0-rc.4
@angular-devkit/build-angular 0.800.0-rc.4
@angular-devkit/build-optimizer 0.800.0-rc.4
@angular-devkit/build-webpack 0.800.0-rc.4
@angular-devkit/core 8.0.0-rc.4
@angular-devkit/schematics 8.0.0-rc.4
@angular/pwa 0.12.4
@ngtools/webpack 8.0.0-rc.4
@schematics/angular 7.2.4
@schematics/update 0.800.0-rc.4
rxjs 6.4.0
typescript 3.4.5
webpack 4.30.0
Anything else relevant?
IE11 only.
@sandipsrane Sorry there was an issue with the package and bin command setup. Please install version 1.0.1 and kick the tires.
Thanks for letting me know about the issue.
@sandipsrane created an issue here as to not pollute this thread. I'm working on a fix for this. https://github.com/ChrisMeeusen/ng-ie-serve/issues/2
Options mentioned above are working now. It was not working because Ivy was enabled in tsconfig.app.json. After making it false it started working.
"angularCompilerOptions": { "enableIvy": true }
"es5": { "tsConfig": "./tsconfig-es5.app.json" }
shouldn't it read src/tsconfig-es5.app.json instead?
tsconfig.app.json lives under src/ and therefore I created tsconfig-es5.app.json there, next to it.
and I think it is worth pointing out that in
{
"browserTarget": "app:build:es5"
}
"app" should be replaced by the actual app name (actual key value used under "project" key)
It is not working

It is not working
@chintandalwadiwk
If IE11 throws object doesn't support..., it is often because IE is running in compatibility mode (eg 5). What is the number shown on the top right (just above the word "Target" (at the top right corner of your screen capture)?
Hello,
We had the issue too while migrating as we have to support IE10-IE11. I have followed the instructions here and read other related threads and that helped fixing the script issues and supporting IE for local dev testing (ng serve) but there is still a issues in rendering. Could be related to flex / break-points calculations . We use Material with Bootstrap grid for layout (only grid, not full Bootstrap) and nothing really special aside of that.
Is there a way to find what polyfill where removed that could affect css and such?
I will try to compare the runtime of our older 7.x build where everything worked just fine (without anything extra in the polyfill file) but I would gladly take any hint.
Using localhost, I see that style.js have no es5 variant (like we can see in this work in progress document update : https://pr31262-14beff1.ngbuilds.io/guide/deployment), could be a hint?

If this can be usefull to someone else, my coworker was able to figure it out. It was something missing interacting with bootstrap that he fixed with something like this:
@import './variables';
.row {
width: calc( 100% + (#{$gutter} * 2));
}
Some more testing required but it seem to be fine now.
It is not working
Did you resolve this issue? Same have. IE-11, and I checked what not compatibility mode. I got "Object doesn't support property or method 'values'" error in infinity cycle. It looks like file with polyfills is not completed, without Object.values and other features. How I can complete polifills file in Angular 8?
resolved: I added in polyfills.ts import 'core-js/es7/array'; and set up paths like in this comment https://github.com/zloirock/core-js/issues/412#issuecomment-495249250
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.