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

Error IE11

Open alexrmg opened this issue 9 years ago • 12 comments

Please provide us with the following information:

OS?

Windows 10. Linux

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.

ng new myapp -p gt (No modification has been done to the application) ng build ng serve

(IE11) http://localhost:4200/ F5 again -- > then, jscript browser console throws error:

[Error] SCRIPT5007: No se puede obtener la propiedad 'apply' de referencia nula o sin definir vendor.bundle.js (43881,5)

... and the app crash.

Sorry, my OS is spanish.

The log given by the failure.

Normally this include a stack trace and some more information.

Mention any other details that might be useful.


Thanks! We'll be in touch soon.

alexrmg avatar Feb 19 '17 01:02 alexrmg

You'll need to adjust the polyfills.ts file for your target browsers by uncommenting the appropriate sections.

clydin avatar Feb 19 '17 01:02 clydin

that's right... i'd missed adjust polyfills.ts...

Thank you very much...

alexrmg avatar Feb 19 '17 01:02 alexrmg

This should be uncomment by default. Certainly for IE 11

AntiCZ avatar Feb 27 '17 15:02 AntiCZ

So which lines needs to be uncommented for IE 11 to work?

eddieedease avatar Jun 14 '17 17:06 eddieedease

how to adjust polyfills ? please explain

HarindraNarayan avatar Aug 24 '17 18:08 HarindraNarayan

You make find polyfills.ts into you general project folder (by default src) Then you find section /** IE9, IE10 and IE11 requires all of the following polyfills. **/, and delete comments in this section.

AndreyPatseiko avatar Aug 31 '17 09:08 AndreyPatseiko

Also, what I found out was that when I made the app via the CLI, it was like a year ago. The polyfills.ts file has changed in that time. So if that's also your case, you could copy/paste if from a fresh ng new, adjust by removing comments and your set. IE works good now

eddieedease avatar Aug 31 '17 09:08 eddieedease

I've error in ie 11 - proxy object is undefined. ERROR ReferenceError: "Proxy" не определено how to fix it?

sergamers avatar Oct 25 '17 17:10 sergamers

Now i've this polyfills.ts https://gist.github.com/sergamers/21ba3fc86d09ce0a9b23bbc518d1870e

sergamers avatar Oct 25 '17 17:10 sergamers

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

Attached is my polyfills file polyfills.txt

Also tried to update webpack-dev-server as suggested https://github.com/angular/angular-cli/issues/9310 but npm install failes

sarahs07 avatar Mar 15 '18 12:03 sarahs07

Having the exact same problem as @c-science1

zachrickards avatar May 02 '18 15:05 zachrickards

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.