New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
angular-cli generated application don't work on IE10 #8596
Comments
@paulozagaloneves can you provide your pollyfills.ts file? |
I have a same problem on IE11 polyfills.ts
package.json dependencies
|
I got the same problem on IE10, but it works fine in IE11. Version
polyfills.ts:/** 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';
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
import 'classlist.js'; // Run `npm install --save classlist.js`.
/** IE10 and IE11 requires the following for the Reflect API. */
import 'core-js/es6/reflect';
/** Evergreen browsers require these. **/
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
import 'core-js/es7/reflect';
/**
* Required to support Web Animations `@angular/platform-browser/animations`.
* Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
**/
import 'web-animations-js'; // Run `npm install --save web-animations-js`.
/***************************************************************************************************
* Zone JS is required by Angular itself.
*/
import 'zone.js/dist/zone'; // Included with Angular CLI.
/***************************************************************************************************
* APPLICATION IMPORTS
*/
/**
* Date, currency, decimal and percent pipes.
* Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
*/
import 'intl'; // Run `npm install --save intl`.
/**
* Need to import at least one locale-data with intl.
*/
import 'intl/locale-data/jsonp/en'; however when installed classlist.js, web-animations-js and intl, it got this warning:
|
My polyfills.ts
|
Facing same issue in IE10. |
When solving a compatibility problem in Safari, this issue seems to be fixed as well. Solution comes from this stackoverflow post Default Angular-CLI Project Fails in Safari - culprit strict mode?
|
@paulozagaloneves Have you tried adding |
This seems to be an issue in IE9, IE10 and Safari. It essentially means that none of these browsers will be able to run CLI 1.5+ projects. Are there any plans to fix this soon? I'd hate to have to rollback to CLI 1.4 and Angular 4.4 because of this issue. |
The error is due to the development server's live reload client code (from webpack-dev-server) which requires basic ES2015 support. This will not affect builds (production or otherwise) of the application as the live reload code is not present. Live reload functionality can be disabled, if desired, via the |
@clydin when you do production build everything is passing but when you serve it with NGINX for example it has the same issue but builded |
@Stradivario This issue pertains to the live-reload development server functionality and not deployment of production builds |
I'm also having this issue when including old .js code and running UpgradeModule -- everything works except for the .js code is not transpiled to es5 for ie11 -- IE throws syntax error as it attempts to parse "class Foo".... interestingly enough the TypeScript (.ts) files do get transpiled... as a quick fix i tried renaming all .js to .ts (via a simple unix command) but I could not get my tsconfig.json to respect under compilerOptions... Therefore the only hope was to manually convert .js to .ts and add a ton of :any types all over....BLEH Any ideas? Latest angular-cli... Angular CLI: 6.0.8 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
polyfills.ts
Repro steps
Observed behavior
Desired behavior
Should work with IE10.
Mention any other details that might be useful (optional)
This application works well with Firefox, Chrome and IE11
The text was updated successfully, but these errors were encountered: