angular: All Angular 2 apps broken in Internet Explorer 11 after beta.0
All Angular beta.1 - beta.6 applications crash in Internet Explorer 11
Last working version was beta.0.
Looks like they die in TemplateCompiler
.
Messages vary:
SyntaxError: The use of a keyword for an identifier is invalid
SyntaxError: Expected ';'
StackTrace seems always the same:
SyntaxError: ...
at evalExpression (https://code.angularjs.org/2.0.0-beta.6/angular2.dev.js:451:5)
at TemplateCompiler.prototype._createViewFactoryRuntime (https://code.angularjs.org/2.0.0-beta.6/angular2.dev.js:24364:9)
...
Try _any of the sample applications_ in the documentation including QuickStart. All of them are shimmed for IE11
Plunkers crash too. Try the QuickStart or Template Syntax plunkers
Discovered that beta.0 was the last working version by rolling the plunker index.html scripts back, version by version.
Tested with IE 11.103.10586.0 (update 11.0.28) in Windows 10.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 3
- Comments: 35 (11 by maintainers)
SCRIPT5009: ‘System’ is undefined
I am still facing this issue. I tried including whatever told
My index.html
In vendors.min.js, I bundled polyfills from
Please help me.
Please let me know if any information needed.
We do not recommend those shims. We currently recommend core-js. Please see the latest
package.json
in the current QuickStart@Sri276286 You have already opened a separate issue, which is unrelated to this one. Please follow @ericmartinezr’s suggestion on moving your question to a support channel instead, as yours is not a bug report or feature request.
Please update to latest (beta.7 as I write) and try again using all three of these IE related shims:
or in plunker
Report back if still not working.
Yes, it the testing shim is temporary. We hope to merge the two Angular-supplied shims in a beta coming soon.
I still face the issue even though I tried all. Compatibility mode is off,ts target is es5, polyfills uncommented, meta tag added, shims. added. But, this time error appears for some underlying projects I referenced. This only happens with IE11. FF,Chrome,mobile browsers are all fine. (webpack) Anyone may check from following ghpg https://davutg.github.io/ng5BookMarkBestSeller/
I am using Angular 2
I fixed all those above issues by doing 2 things
in index.html add
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
in src\polyfills.ts
uncomment /** IE9, IE10 and IE11 requires all of the following polyfills. **/ 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’;
I am not sure it will help everyone, but might do some one.
Cheers!
Duplicate of #6501.
We need to include Angular’s
shims_for_IE.js
. Apparently the other shim libraries don’t cover all of IE’s problems.Workaround is to load it after the other IE shim scripts either from the npm package …
… or from the web from the following npmcdn :
When I tested, it resolved to:
I’m pushing this to all the doc samples.
We shouldn’t be using npmcdn to get
shims_for_IE.js
. We should addshims_for_IE.js
tohttps://code.angularjs.org/