404 main css, main.js #378

Closed
sun-ks opened this Issue Dec 29, 2015 · 2 comments

Projects

None yet

4 participants

@sun-ks
sun-ks commented Dec 29, 2015

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

@tekgrunt
tekgrunt commented Feb 8, 2016

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

@mteodori
Contributor

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

@ruyadorno ruyadorno pushed a commit that closed this issue Mar 26, 2016
@mteodori mteodori fixes #378 404 main css, main.js - incorrect generated app name in ma…
…in when a dash is used
9f66cd3
@ruyadorno ruyadorno closed this in 9f66cd3 Mar 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment