Prepire Environment for RequireJS, Backbone, and Bower Starter Template on Windows

By Sochinda Tith, Required application: Nodejs installer (http://nodejs.org/download/) Msysgit (http://msysgit.github.io/) Download both application and install into Windows OS Open “CMD” as administrator and run: $ npm install bower-installer $ npm install -g requirejs del %HOMEDRIVE%%HOMEPATH%\AppData\Roaming\npm\r.js DOSKEY r.js=r.js.cmd $* *** Notation: for new version bower, we have to change component.js to bower.js If there any error’s called javascriptContinue reading “Prepire Environment for RequireJS, Backbone, and Bower Starter Template on Windows”

RequireJS and Windows: how to invoke the r.js command

By: Hajime Branko Yamasaki Vukelic For Install r.js npm install -g requirejs   If you’ve been frustrated to hell using RequireJS on Windows, and the r.js optimizerin particular, you might have witnessed things like WSH errors or your editor opening the r.js file. I’ve seen a few frustrated people post bug reports on GitHub, so I decided to post a few solutions toContinue reading “RequireJS and Windows: how to invoke the r.js command”

Uncaught TypeError: undefined is not a function

I had the exact same problem and I was struggling around many hours until I saw your entry here. Then I started over from scratch and now it works for me at least. requirejs.config({ baseUrl:’/js/’, paths:{ jquery:’vendor/jquery’, handlebars: ‘vendor/handlebars’, text: ‘vendor/require-text’, chaplin:’vendor/chaplin’, underscore:’vendor/underscore’, backbone:’vendor/backbone’, highcharts: ‘vendor/highcharts’ }, shim: { backbone: { deps: [‘underscore’, ‘jquery’], exports:Continue reading “Uncaught TypeError: undefined is not a function”