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

Re : Can you use a page's existing jQuery in steal?

$
0
0
Curtis, thanks, however it doesn't appear that steal can build because:
 
  1. !!!!!!!!!!! ERROR !!!!!!!!!!!

    -message    = Cannot call method "extend" of undefined
    -fileName   = file:////web/public/js/jmvc/can/util/jquery/jquery.js
    -lineNumber = 2
    -name       = TypeError

                  error loading html element  [object HTMLScriptElement]   TypeError: Cannot call method "extend" of undefined 
That's with this:

  1. steal.config({
        map: {
            "*": {
                "jquery/jquery.js" : "jquery",
                "can/util/util.js": "can/util/jquery/jquery.js"
            }
        },
        paths: {
            "jquery": './empty.js'
        },
        shim : {
            jquery: {
                exports: "jQuery"
            }
        },
        ext: {
            js: "js",
            css: "css",
            ejs: "can/view/ejs/ejs.js"
        }
    })
Does building a production.js require jQuery to be in production.js?  I assumed it would concatenate the contents of empty.js.

I just want to make a Can app run on a site that uses Twitter Bootstrap.  Not a weird edge case I hope...

Viewing all articles
Browse latest Browse all 3491

Trending Articles