Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Cannot build my app, production.js is empty

$
0
0
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:

  1. Building to apps/master/
  2.   opening apps/master/scripts/build.html
  3. failed to open file  file:/api/checkUser   JavaException: java.io.FileNotFoundException: /api/checkUser (No such file or directory) 
  4.   adding dependencies
  5.   + stealconfig.js
  6.  // ALL MY DEPS
  7.  
  8.   no packages

  9. Building apps/master/production.js
  10. 24249
  11. 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.

  12.                   this.attr('viewingCity', newDefault_city);
  13.                }
  14.             },
  15.             permission:{
  16.   //LOTS MORE TRAILINGCOMMA WARNINGS
  17.          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)

Makes no sense to me, 'api/checkUser' is the url of a user model prototype method:

  1. getSessionUser: function(){
  2.             return can.ajax({
  3.                method: 'GET',
  4.                url:'/api/checkUser',
  5.                dataType:"json"
  6.             });
  7.          }

This is only place in my working directory where this string exists.

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:

  1. steal.config({
  2. map: {
  3. "*": {
  4. "jquery/jquery.js" : "jquery",
  5. "can/util/util.js": "can/util/jquery/jquery.js",
  6. "jquery/": "jquerypp/",
  7. "moment/moment.js" : "assets/js/moment.js",
  8. "bootstrap-datepicker/bootstrap-datepicker.js" : "assets/js/stealdatetimepicker.js"
  9. }
  10. },
  11. paths: {
  12. "jquery/": "jquerypp/",
  13. "jquery": "can/lib/jquery.1.9.1.js",
  14. "mootools/mootools.js" : "can/lib/mootools-core-1.4.5.js",
  15. "dojo/dojo.js" : "can/util/dojo/dojo-1.8.1.js",
  16. "yui/yui.js" : "can/lib/yui-3.7.3.js",
  17. "zepto/zepto.js" : "can/lib/zepto.1.0rc1.js"
  18. },
  19. shim : {
  20. jquery: {
  21. exports: "jQuery"
  22. },
  23. 'bootstrap-datepicker':{
  24. deps:["moment"]
  25. }
  26. },
  27. ext: {
  28. js: "js",
  29. css: "css",
  30. less: "steal/less/less.js",
  31. mustache: "can/view/mustache/mustache.js"
  32. }
  33. });

Viewing all articles
Browse latest Browse all 3491

Trending Articles