you have probably heard of this problem way too often. But I can't seem to find the solution for this. Every time I server the app and start it on IE I get a syntax error in the vendor.js pointing to an arrow function.
I have gone through following steps:
- changed the
target
in mytsconfig
toes5
- in the
browserlist
I changednot IE 9-11
toIE 9-11
- In the polyfill.js uncommented all core-js imports and added the classlist.js import and even installed the package
After all the steps I still get the same issue. It seems only the polyfill.js file is being transpiled to a polyfill-es5.js file and I don't know why.
I have an Angular application with following setup:
@angular-devkit/architect 0.801.3
@angular-devkit/build-angular 0.801.3
@angular-devkit/build-optimizer 0.801.3
@angular-devkit/build-webpack 0.801.3
@angular-devkit/core 8.1.3
@angular-devkit/schematics 8.1.0
@angular/animations 8.1.0
@angular/cdk 8.2.3
@angular/cli 8.1.0
@angular/common 8.1.0
@angular/compiler 8.1.0
@angular/compiler-cli 8.1.0
@angular/forms 8.1.0
@angular/platform-browser 8.1.0
@angular/platform-browser-dynamic 8.1.0
@angular/platform-server 8.1.0
@angular/router 8.1.0
@ngtools/webpack 8.1.3
@schematics/angular 8.1.0
@schematics/update 0.801.0
ng-packagr 5.7.1
rxjs 6.5.3
typescript 3.4.5
webpack 4.35.2
Any ideas on this?
best regards,
Nuru
EDIT: This is how my polyfills.ts looks like:
import 'core-js/';
import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es7/array';
import 'core-js/fn/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/set';
import 'core-js/es6/reflect';
import 'classlist.js';
import 'intl';
import 'web-animations-js';
import 'zone.js/dist/zone';
Additionally I've also tryed to install and import typedarray
and blobjs
And my dependencies:
"dependencies": {
"@angular/animations": "8.1.0",
"@angular/cdk": "^8.0.2",
"@angular/common": "8.1.0",
"@angular/core": "^8.1.0",
"@angular/forms": "8.1.0",
"@angular/platform-browser": "8.1.0",
"@angular/platform-browser-dynamic": "8.1.0",
"@angular/platform-server": "8.1.0",
"@angular/router": "8.1.0",
"@ng-bootstrap/ng-bootstrap": "^4.0.1",
"@ng-select/ng-select": "^2.11.2",
"@ngrx/core": "^1.2.0",
"@ngrx/store": "^8.0.1",
"@ngx-translate/core": "^10.0.2",
"@ngx-translate/http-loader": "^3.0.1",
"angular2-tinymce": "^2.1.2",
"balloon-css": "^0.5.0",
"bcryptjs": "^2.4.3",
"chart.js": "^2.7.1",
"core-js": "^2.5.1",
"favico.js": "^0.3.10",
"lazysizes": "^5.1.1",
"linkify-it": "^2.1.0",
"mapbox.js": "^3.1.1",
"md5": "^2.2.1",
"moment": "^2.24.0",
"mousetrap": "^1.6.2",
"ng-pick-datetime": "^7.0.0",
"ng-pick-datetime-moment": "^1.0.8",
"ng2-dragula": "^2.1.1",
"ngx-bowser": "^0.1.0",
"ngx-device-detector": "^1.3.5",
"ngx-image-cropper": "^1.4.1",
"ngx-infinite-scroll": "^6.0.1",
"ngx-moment": "^3.3.0",
"ngx-pipes": "^2.5.1",
"papaparse": "^4.6.3",
"push.js": "^1.0.4",
"resumablejs": "^1.0.2",
"rxjs": "^6.5.2",
"socket.io-client": "^2.1.1",
"text-encoding": "^0.6.4",
"twemoji": "^11.0.0",
"zone.js": "~0.9.1"
},