yeoman/generator-backbone

404 main css, main.js

Closed this issue · 2 comments

Hello people. I installed Backbone.js generator yo backbone my-app After i generated view backbone:view blog. Then i run grunt server and i see my app in http://localhost:9000/ cool! =) But if i will write in my view - 'blog' anything. For example write - console.log('init my view'); in initialize: method my view. I have errors -

Failed to load resource: the server responded with a status of 404 (Not Found)
main.js:4 Uncaught ReferenceError: Invalid left-hand side in assignment
http://localhost:9000/scripts/templates.js Failed to load resource: the server responded with a status of 404 (Not Found)
video.js:3 Uncaught ReferenceError: VodBackboneGenerator is not defined
http://localhost:9000/styles/main.css Failed to load resource: the server responded with a status of 404 (Not Found)

If stop grunt server and run again, the errors will not be.

Screen photo - http://screencast.com/t/huSQwcRP
Screen video - http://screencast.com/t/yzWi7FNj

Did you ever make an headway with this? It seems I am experiencing the same issue.

looks like it happens when the directory you generate in or the application name provided on the command line contains a dash, then the app namespace is generated via param-case rather than pascal-case in scripts/main.js while the one in the subgenerators is correct, can be fixed as a bug