Angular-cli: Error IE11

Created on 19 Feb 2017  路  12Comments  路  Source: angular/angular-cli

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.

Most helpful comment

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

All 12 comments

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

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

Thank you very much...

This should be uncomment by default. Certainly for IE 11

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

how to adjust polyfills ?
please explain

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.

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

I've error in ie 11 - proxy object is undefined.
ERROR ReferenceError: "Proxy" 薪械 芯锌褉械写械谢械薪芯
how to fix it?

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

Having the exact same problem as @c-science1

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

IngvarKofoed picture IngvarKofoed  路  3Comments

delasteve picture delasteve  路  3Comments

donaldallen picture donaldallen  路  3Comments

hareeshav picture hareeshav  路  3Comments

rajjejosefsson picture rajjejosefsson  路  3Comments