Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find module appname/app #70

Closed
devinrhode2 opened this issue Mar 16, 2015 · 4 comments
Closed

Could not find module appname/app #70

devinrhode2 opened this issue Mar 16, 2015 · 4 comments

Comments

@devinrhode2
Copy link

I'm getting this error because in appname.js, there is no define('appname/app' call, so when the application tries to start (require('appname/app')['default'].create({...})), it can't find the appname/app module because it was never defined. Why isn't this define call being output into assets/appname.js? I see many other modules are being defined. Presumably appname/app refers to the Ember.Application exported in appname/app/app.js, or in the case of using coffeescript, app.coffee. I see that this module hasn't been updated recently, so I'm guessing ember-cli 0.2.0 broke something and this needs to be updated.

When I use a plain app.js file generated by ember init, instead of an app.coffee file, the issue goes away.

Note: I'm actually using coffees6 but that module ultimately just passes things onto this module.

You can see the error printed in the console on my project at this commit here: https://github.com/devinrhode2/major-domo/tree/95cfed62b88c29f07c5f4f7ef1580f43d668f390

@kimroen
Copy link
Owner

kimroen commented Mar 17, 2015

That's strange - I've not heard of anyone else having problems with this addon and ember-cli 0.2.0. It looks like ember-cli-coffees6 might not be quite ready yet though. This seems related: alexspeller/ember-cli-coffees6#8

Outputting the define-statement all happens after addons are processed, so I don't have any initial ideas as to what specifically it could be.

I'll look in to this more if you could verify that this is actually a problem with this addon.

Also, the latest release of ember-cli-coffeescript was 4 days ago, so maybe make sure you're depending on the latest version?

@devinrhode2
Copy link
Author

The error does indeed seem to be caused by the coffees6 addon, I open the issue over there.

@alexspeller
Copy link

FYI there has been a massive upgrade to ember-cli-coffees6 that should solve these issues now

@kimroen
Copy link
Owner

kimroen commented Mar 18, 2015

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants