-
1. Re: cordovasim: Invalid character '\u0187' on line 2..FileWriter.js
ibuziuk Nov 23, 2016 5:01 AM (in response to alpotrh)Hello, Alfredo
Could you share the app ?
-
2. Re: cordovasim: Invalid character '\u0187' on line 2..FileWriter.js
alpotrh Nov 23, 2016 9:38 PM (in response to ibuziuk)Hi Ilya,
Sorry I'm not allowed to but I can clearly see that there's invalid character on the generated JS at http://localhost:50665/plugins/cordova-plugin-file/www/FileWriter.js.
cordova.define("cordova-plugin-file.FileWriter", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
Any hint on where I should look at. I'm attaching the list of plugins we are using:<plugin name="cordova-plugin-whitelist" spec="~1.2.2" />
<plugin name="cordova-plugin-statusbar" spec="~2.1.3" />
<plugin name="cordova-plugin-device" spec="~1.1.3" />
<plugin name="cordova-plugin-console" spec="~1.0.4" />
<plugin name="cordova-plugin-splashscreen" spec="4.0.0" />
<plugin name="ionic-plugin-keyboard" spec="~2.2.1" />
<plugin name="cordova-plugin-x-toast" spec="https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin.git" />
<plugin name="cordova-plugin-camera" spec="~2.3.0" />
<plugin name="cordova-plugin-file" spec="~4.3.0" />
<plugin name="cordova-plugin-filepath" spec="~1.0.2" />
<plugin name="cordova-plugin-geolocation" spec="~2.3.0" />
<plugin name="cordova-plugin-inappbrowser" spec="~1.5.0" />
<plugin name="cordova-sqlite-storage" spec="https://github.com/litehelpers/Cordova-sqlite-storage.git" />
<plugin name="phonegap-plugin-push" spec="~1.8.2">
And BTW do you know where's the location of this JS?
Thanks. -
3. Re: cordovasim: Invalid character '\u0187' on line 2..FileWriter.js
ibuziuk Dec 8, 2016 12:57 PM (in response to alpotrh)Hello, Alfredo
I have created Jira for this issue - [JBIDE-23634] cordovasim: Invalid character '\u0187' inFileWriter.js - JBoss Issue Tracker
Might be smth. wrong with plugin processing on CordovaSim side. Quite weird that it is reproducible for only a particular plugin / file though.
-
4. Re: cordovasim: Invalid character '\u0187' on line 2..FileWriter.js
bogdanicalen Dec 14, 2016 5:15 PM (in response to alpotrh)I have the same issue. Here is the code I wrote. I added a comment on the line where it complains.
deviceready: function() {
$.getJSON( "http://localhost:8080/mobile-rest/rest/members", function( data ) {
console.log("DamDaram");
var items = [];
$.each( data, function( key, val ) {
console.log("items");
items.push("<li><a href='#"+ key + "'>" + val.name +"</a></li>");
});
$("#contacts").append(items);
}); // On this line it says there is an Invalid charachter.
}