raDiesle / backbone.js-jquerymobile-boilerplate-template

A template to use jquerymobile with backbone.js and handlebars.js
48 stars 10 forks source link

Error when executing "bbb handlebars" #9

Open Golodhros opened 11 years ago

Golodhros commented 11 years ago

Hi there,

I have follow your installation instructions, but when I get to the handlebars precompilation step I got this error: Error: TypeError: Object # has no method 'options' at Object.module.exports (/var/www/sparked/cab-mobile/node_modules/grunt-contrib/node_modules/grunt-contrib-handlebars/tasks/handlebars.js:35:24) at Object.task.registerMultiTask.thisTask (/usr/lib/node_modules/bbb/node_modules/grunt/lib/grunt/task.js:109:15) at Object.task.registerTask.thisTask.fn (/usr/lib/node_modules/bbb/node_modules/grunt/lib/grunt/task.js:58:16) at Task. (/usr/lib/node_modules/bbb/node_modules/grunt/lib/util/task.js:343:36) at Task. (/usr/lib/node_modules/bbb/node_modules/grunt/lib/util/task.js:319:9) at Task. (/usr/lib/node_modules/bbb/node_modules/grunt/lib/util/task.js:346:11) at Task.start (/usr/lib/node_modules/bbb/node_modules/grunt/lib/util/task.js:359:5) at Object.grunt.tasks (/usr/lib/node_modules/bbb/node_modules/grunt/lib/grunt.js:143:8) at Object.module.exports as cli at Object. (/usr/lib/node_modules/bbb/bbb.js:98:7)

Could it be due to a change in bbb contrib?

Many thanks for your awesome work!

raDiesle commented 11 years ago

Hi Golodhros,

thanks for your information.

I am currently investigating in https://github.com/raDiesle/backbone-fundamentals/blob/gh-pages/chapters/10-mobile-applications.md as well as https://github.com/raDiesle/backbone-fundamentals/tree/gh-pages/practicals/todo-jqm-app which was already merged with the trunk.

Within next week, I'm planning to update to the newest libraries, so stay tuned!

Golodhros commented 11 years ago

Thanks!

kingnight commented 11 years ago

i find the similar problem , wait for your update

raDiesle commented 11 years ago

I commited the upgrade to grunt 0.4.0. Can you check it again.

The steps needed are :

npm uninstall -g grunt

npm install -g grunt-cli // actually not needed npm install grunt --save-dev

then run : grunt handlebars grunt connect:server:keepalive

Is it working for you?

Golodhros commented 11 years ago

It's Working!! Thanks a lot!!

kingnight commented 11 years ago

ok,working , thanks a lot ,the chapter - 10-mobile-applications, very helpful to me !

johntday commented 11 years ago

Not working.