codediodeio/angular-firestarter

Mobile Not working (Safari)

Opened this issue · 1 comments

Your demo site also emit same error logs.

And stopped at ~$ bootstrapping firestarter...

[Error] SyntaxError: Unexpected token '>'
	(anonymous function) (firestarter-96e46.firebaseapp.com:4)
[Error] TypeError: undefined is not a function (evaluating 'Object.assign({},t,e)')
	(anonymous function) (vendor.c276711844f3b6cbdd8f.bundle.js:1:2075300)
	reduce
	g (vendor.c276711844f3b6cbdd8f.bundle.js:1:2075265)
	qbdv (vendor.c276711844f3b6cbdd8f.bundle.js:1:1064523)
	n (inline.80840b273b4264c89c7f.bundle.js:1:106)
	fc+i (vendor.c276711844f3b6cbdd8f.bundle.js:1:914679)
	n (inline.80840b273b4264c89c7f.bundle.js:1:106)
	bm2B (vendor.c276711844f3b6cbdd8f.bundle.js:1:742405)
	n (inline.80840b273b4264c89c7f.bundle.js:1:106)
	cDNt (main.9d15e677b9e4c8ec911a.bundle.js:1:43978)
	n (inline.80840b273b4264c89c7f.bundle.js:1:106)
	(anonymous function) (main.9d15e677b9e4c8ec911a.bundle.js:1)
	n (inline.80840b273b4264c89c7f.bundle.js:1:106)
	webpackJsonp (inline.80840b273b4264c89c7f.bundle.js:1:432)
	Global Code (main.9d15e677b9e4c8ec911a.bundle.js:1)

I found answer.

The problem is polyfills.ts setting.

Cause using iPhone5, I should added this polyfills.ts settings

 * BROWSER POLYFILLS
 */
/** 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/set';

I founded this from one of the angular-cli issue

Hope someone get helps from this answer.