Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49082

SCRIPT1028: SCRIPT1028: Expected identifier, string or number

$
0
0

Hi guys,

I’m working on Ionic app ("@ionic/react": “^5.4.1”) as my first Ionic project, on which everything works fine, but it seems that on some browsers (Edge and it seems older versions of others like Chrome, Safari…) application just shows blank white page and throws an error: SCRIPT1028: SCRIPT1028: Expected identifier, string or number.

Debugger is pointing me to spread operator (…styles) in 1.chunk.js :

const proto = Object.defineProperties(() => {}, {
	...styles,
	level: {
		enumerable: true,
		get() {
			return this._generator.level;
		},
		set(level) {
			this._generator.level = level;
		}
	}
});

It looks like spread operator isn’t supported by these browsers?

Can anyone help me how to overcome this? Is it possible that transpiler is transpiling to some version of js unsupported by these browsers? How to overcome this situation, does anyone has solution or some clue? I need to roll out app on some older browsers.

If someone need additional details just let me know which one?

Thnks in advance!
Aleksandar

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 49082

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>