thardy / generator-ngbp

Yeoman generator based on the ngBoilerplate kickstarter, a best-practice boilerplate for any scale Angular project built on a highly modular, folder-by-feature structure.
100 stars 23 forks source link

'HomeController' is not a function with coffeescript enabled #28

Open lsiden opened 9 years ago

lsiden commented 9 years ago

After generating a fresh app with Coffeescript enabled and running it in Chrome, I'm seeing

Error: [ng:areq] Argument 'HomeController' is not a function, got undefined

in the Chrome developer console.

I will see this for the AboutController too if I click on the About nav item.

Seeing this in Firefox debug console too.

If I generate the app again without Coffeescript enabled, I see not such messages.

Otherwise, great generator! I'm going to disable Coffeescript in my own app for now. Too bad! I like Coffescript.

ravitez commented 9 years ago

Happens because the generated files include the function twice(take a look at generated .js) files. Hope it will be fixed soon.

thardy commented 9 years ago

I could definitely use help with the coffeescript side of generator-ngbp. The majority of what is here has been contributed by others, since I don't regularly work in coffeescript. I have tried to update that side with some of the major changes, but it is definitely starting to slip. Any help would be appreciated.

Yeoman isn't too hard once you get over the initial, pretty small, learning curve.