Firstly, I already read through the post with this exact same issue,
they resolved it by upgrading the version of java from 1.5 > 16, my
path points to 1.7, s I dont think that is the issue.
Im trying to build my app using: sh
./js apps/master/scripts/build.js
and
after build my production.js just looks like:
steal.packages({});
thats the only line in it.
I piped the output of the build process to a txt file which looks
like this:
- Building to apps/master/
- opening apps/master/scripts/build.html
- failed to open file file:/api/checkUser JavaException: java.io.FileNotFoundException: /api/checkUser (No such file or directory)
- adding dependencies
- + stealconfig.js
- // ALL MY DEPS
- no packages
-
- Building apps/master/production.js
- 24249
- ERROR in models/user.js at line 51: ERROR - Parse error. Internet Explorer has a non-standard intepretation of trailing commas. Arrays will have the wrong length and objects will not parse at all.
-
- this.attr('viewingCity', newDefault_city);
- }
- },
- permission:{
- //LOTS MORE TRAILINGCOMMA WARNINGS
- apps/master/production.css
A couple of things to mention, first th line:
failed to open file file:/api/checkUser JavaException: java.io.FileNotFoundException: /api/checkUser (No such file or directory)
failed to open file file:/api/checkUser JavaException: java.io.FileNotFoundException: /api/checkUser (No such file or directory)
Makes no sense to me, 'api/checkUser' is the url of a user
model prototype method:
- getSessionUser: function(){
- return can.ajax({
- method: 'GET',
- url:'/api/checkUser',
- dataType:"json"
- });
- }
-
The list of dependencies looks to be accurate, and the warnings
about trailing commas are not accurate, there are no trailing commas
in the locations it warns of.
and my stealconfig is very basic, i dont use any relative paths:
- steal.config({
- map: {
- "*": {
- "jquery/jquery.js" : "jquery",
- "can/util/util.js": "can/util/jquery/jquery.js",
- "jquery/": "jquerypp/",
- "moment/moment.js" : "assets/js/moment.js",
- "bootstrap-datepicker/bootstrap-datepicker.js" : "assets/js/stealdatetimepicker.js"
- }
- },
- paths: {
- "jquery/": "jquerypp/",
- "jquery": "can/lib/jquery.1.9.1.js",
- "mootools/mootools.js" : "can/lib/mootools-core-1.4.5.js",
- "dojo/dojo.js" : "can/util/dojo/dojo-1.8.1.js",
- "yui/yui.js" : "can/lib/yui-3.7.3.js",
- "zepto/zepto.js" : "can/lib/zepto.1.0rc1.js"
- },
- shim : {
- jquery: {
- exports: "jQuery"
- },
- 'bootstrap-datepicker':{
- deps:["moment"]
- }
- },
- ext: {
- js: "js",
- css: "css",
- less: "steal/less/less.js",
- mustache: "can/view/mustache/mustache.js"
- }
- });