angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Angular CLI project is not working in Internet Explorer 11

Open navneetsharma1988 opened this issue 9 years ago • 11 comments

Please provide us with the following information:

OS?

Windows 7

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here: @angular/cli: 1.0.0-beta.32.3 node: 7.5.0 os: win32 x64

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc. No. The app was created using CLI and I have not changed the code.

The log given by the failure.

DOM7011: The code on this page disabled back and forward caching. For more information, see: http://go.microsoft.com/fwlink/?LinkID=291337 File: localhost:4200 SCRIPT5007: Unable to get property 'apply' of undefined or null reference File: vendor.bundle.js, Line: 43860, Column: 5

Mention any other details that might be useful.

Create a new app using ng new app-name and launch app in IE


Thanks! We'll be in touch soon.

navneetsharma1988 avatar Feb 19 '17 09:02 navneetsharma1988

Dup #4822 Please adjust 'polyfills.ts' for your target browsers.

clydin avatar Feb 19 '17 11:02 clydin

Thanks it worked...

navneetsharma1988 avatar Feb 19 '17 12:02 navneetsharma1988

What did you do to make it work?

kudorgyozo avatar Oct 16 '17 13:10 kudorgyozo

@kudorgyozo as stated above please adust 'polyfills.ts' and uncomment entries for IE

navneetsharma1988 avatar Oct 16 '17 13:10 navneetsharma1988

@navneetsharma1988 Thanks buddy it worked. I am still facing issue with FireForx. In Fireforx content are partially loaded and I see no errors in console.

bijayy33 avatar Oct 21 '17 22:10 bijayy33

Yup just open pollyfils.ts and uncomment following lines..

// 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/es6/regexp'; // import 'core-js/es6/map'; // import 'core-js/es6/weak-map'; // import 'core-js/es6/set';

manoj30dec avatar Nov 23 '17 10:11 manoj30dec

I also had to uncomment the following lines for it to work on IE11: import 'intl'; // Run npm install --save intl. import 'intl/locale-data/jsonp/en';

shoomkloom avatar Nov 23 '17 15:11 shoomkloom

I have tried all of the above, uncommenting and installing the packages but still on IE it's giving "Syntax Error" polyfills file attached.

image [

](url)

sarahs07 avatar Mar 15 '18 11:03 sarahs07

@c-science1 same problem here. SCRIPT1006 error, but for me is at the eval(" ... sourceURL=webpack-internal:///../../../../@ngrx/store/src/utils.js\n"); Seems like there is an character in that vendor file which is unrecognised by IE...

bencesz avatar Mar 16 '18 17:03 bencesz

My issue has been solve by replacing import { combineReducers } from "@ngrx/store/src/utils"; to: import { combineReducers } from "@ngrx/store";

so it was an ngrx import related, not polyfill related. Although it is possible that they are somehow related as well :)

bencesz avatar Mar 16 '18 17:03 bencesz

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.