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

vender.bundle.js occurs error in IE 11.

Open zhxx opened this issue 9 years ago • 13 comments

OS?

Windows 7

Versions.

@angular/cli: 1.0.0-beta.31 node: 6.9.1 os: win32 x64 @angular/common: 2.4.8 @angular/compiler: 2.4.8 @angular/core: 2.4.8 @angular/forms: 2.4.8 @angular/http: 2.4.8 @angular/platform-browser: 2.4.8 @angular/platform-browser-dynamic: 2.4.8 @angular/router: 3.4.8 @angular/cli: 1.0.0-beta.31 @angular/compiler-cli: 2.4.8

Repro steps.

  1. Create a new folder.
  2. Run 'ng init' in it.
  3. Run 'ng serve' in it.
  4. Open http://localhost:4200 in Internet Explorer.

The log given by the failure.

No error information

Mention any other details that might be useful.

More information please refer to https://github.com/angular/angular/issues/14592

zhxx avatar Feb 21 '17 09:02 zhxx

Are you loading the appropriate polyfills in src\polyfills.ts? I believe in newer versions of the CLI the IE11 polyfills are commented out by default.

mattdistefano avatar Feb 21 '17 18:02 mattdistefano

@mattdistefano You are right, after importing polyfills.ts in main.ts, it works. Thanks

zhxx avatar Feb 22 '17 03:02 zhxx

Linking polyfills.ts for those looking for the updates like me.

killrazor avatar Apr 05 '17 20:04 killrazor

Hi,

My angular 5 project also has error in vendor.bundle.js even importing the polyfill.ts and enable polyfills for IE browser, not sure why this happens. It works well in chrome and firefox.

SCRIPT1002: Syntax error 
File: vendor.bundle.js, Line: 5552, Column: 1

abbymrs avatar Jun 21 '18 03:06 abbymrs

@abbymrs same problem

miloskovacevic avatar Feb 27 '19 09:02 miloskovacevic

Same problem, did you find anything @abbymrs @miloskovacevic ?

nohanna avatar Mar 08 '19 08:03 nohanna

@nohanna hey, in my case problem was signalr library that we use.

miloskovacevic avatar Mar 08 '19 08:03 miloskovacevic

Ok thanks, I will investigate but I tried a lot of solutions and nothing works...

nohanna avatar Mar 08 '19 08:03 nohanna

After you insert pollyfils for IE11, and you still have a error, usually is some library that is creating a problem.

miloskovacevic avatar Mar 08 '19 09:03 miloskovacevic

Ok thank you, I'll try to remove libraries one by one

nohanna avatar Mar 08 '19 09:03 nohanna

np

miloskovacevic avatar Mar 08 '19 09:03 miloskovacevic

In case it's useful to anyone who finds this thread, we ran into this issue because we were using the latest version of d3-array. Went looking through the release notes and found this nugget in v2.0:

this release adopts ES2015 language features such as for-of and drops support for older browsers, including IE. If you need to support pre-ES2015 environments, you should stick with d3-array 1.x or use a transpiler.

tuckergordon avatar Apr 17 '19 14:04 tuckergordon

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.