dbashford/mimosa

Ember project will not run optimized as of 1.7.0-beta.1

neverfox opened this issue · 6 comments

As of 1.7.0-beta.1, a skeleton Ember project will no longer run optimized. Instead, you get the error "Uncaught Error: undefined missing ember" in the console. I have a sample project repo (which does nothing but create an App) set up to demonstrate. If you change the bower.json dependencies to any earlier version (<= 1.6.0), it works fine. I didn't see anything in the changelog for Ember that would indicate a reason why this is happening.

An adhoc module will likely solve your problem, and it might be worth adding it to skeletons from here forward:

https://gist.github.com/dbashford/66f1ca3734280b72f182

Ah! I see you're already on the case. So how exactly do you integrate that gist?

Here's a little blog post I put together on adhoc-modules. I probably need to make that a proper module.

http://dbashford.github.io/adhoc-modules/index.html

Mimosa just keeps getting better! That worked. Thanks.

https://github.com/dbashford/mimosa-fix-rjs-ember

adhoc-module is good to have learned. it'll let you do some really dead simple super project specific stuff when the need arises. In my case, the need always arises.

But that module should do the trick.

I do believe this is just a beta/canary problem. I don't think they intend to publish a prod release with the various AMD crud in there. But should you get out of beta, this module just won't have any effect, so its harmless to keep around.