VM319:1 Uncaught SyntaxError: Unexpected token ILLEGAL

Hello,

With Ionic 2, I encounter the following error:
VM319:1 Uncaught SyntaxError: Unexpected token ILLEGAL

The error occurs when reading data that originates from SQLIte.

The relevant part of the code has not changed. So I’m looking for the origin.

Does anyone have the same problem?

  • With Chrome => OK, there is no error
  • On device => KO, error Unexpected token ILLEGAL

Linked to:


but it’s applied to cordova-android 6.0.0 and cordova-android 6.1.0 now

A good explanation
http://timelessrepo.com/json-isnt-a-javascript-subset

Looking for a workaround.

If you have a better workaround, please share it.