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

Contacts Example Errors

$
0
0
I'm tring to run the Contacts Example https://github.com/bitovi/contacts, I cloned the repository and I got the following errors:
  1. GET http://127.0.0.1:8080/projects/contacts/contacts/less/contacts.less.js 404 (Not Found) steal.js?contacts:2450
  2. GET http://127.0.0.1:8080/projects/contacts/contacts/views/category_item.mustache.js 404 (Not Found) steal.js?contacts:2450
  3. GET http://127.0.0.1:8080/projects/contacts/contacts/views/company_item.mustache.js 404 (Not Found) steal.js?contacts:2450
  4. GET http://127.0.0.1:8080/projects/contacts/contacts/views/contact_row.mustache.js 404 (Not Found) steal.js?contacts:2450
  5. GET http://127.0.0.1:8080/projects/contacts/contacts/views/init.mustache.js 404 (Not Found) steal.js?contacts:2450
  6. GET http://127.0.0.1:8080/projects/contacts/jquery/event/resize/resize.js 404 (Not Found) steal.js?contacts:2450
  7. GET http://127.0.0.1:8080/projects/contacts/jquery/jquery.js 404 (Not Found) steal.js?contacts:2450
  8. GET http://127.0.0.1:8080/projects/contacts/jquery/dom/dimensions/dimensions.js 404 (Not Found)
  1. The errors can be grouped as in the following:
  1. Wrong ".js" extension added to view and less files.
  2. jQuery steal configuration map is not working.

Below you can find the (unmodified) stealconfig.js:

  1. steal.config({
        map: {
            "*": {
                "jquery/jquery.js" : "jquery",
                "can/util/util.js": "can/util/jquery/jquery.js",
                "jquery/": "jquerypp/"
            }
        },
        paths: {
            "jquery": "can/lib/jquery.1.9.1.js",
            "mootools/mootools.js" : "can/lib/mootools-core-1.4.3.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"
        }
        },
        ext: {
            js: "js",
            css: "css",
            less: "steal/less/less.js",
            coffee: "steal/coffee/coffee.js",
            ejs: "can/view/ejs/ejs.js",
            mustache: "can/view/mustache/mustache.js"
        }
    })


  1. I'm able to verify that stealJS is loading the above reported configuration but I'm not able to catch the errors, it seems that the map, path, shim and ext are read but not applied.

Please, could you help me to get rid of the error? or Could you give me some hints to debug it or to spot the function(s) that apply the map, path, shim and ex?

Thank you for your time.

Update: I found the topic https://forum.javascriptmvc.com/#Topic/32525000001655033 and tried to switch to steal-legacy, now get requests are fine, but I got several less syntax errors:

  1. Syntax Error on line 322

    in mixins.less on line 322, column 3:

    •   @media
    •   only screen and (-webkit-min-device-pixel-ratio: 2),

I solved it but several additinal ones come out.

I think the problem is with the less version included in steal-legacy





Viewing all articles
Browse latest Browse all 3491

Trending Articles