indexiatech / ember-idx-modal

Ember Indexia Modal
http://indexiatech.github.io/ember-idx-modal/#/gettingstarted
Apache License 2.0
17 stars 13 forks source link

Production build: Uncaught Error: Could not find module ember-idx-utils/config #16

Closed jackmatt2 closed 9 years ago

jackmatt2 commented 9 years ago

ember-cli: 0.1.4 ember-idx-modal: "^0.1.2"

I am getting the following error when deploying to production using ember-cli. It builds fine, i am getting this error during runtime.

Uncaught Error: Could not find module ember-idx-utils/config

Running the dev build using ember serve on the 4200 server is without issue.

jackmatt2 commented 9 years ago

Well I got this working by replacing the Handlebars with the full version of handlebars. I am not convinced now that this was a ember-idx-modal issue. I think maybe the error was occurring due to another issue that relied on the full version of handlebars in the production build.

function replaceHandlebarsRuntime(app) {
    var index = app.legacyFilesToAppend.indexOf('bower_components/handlebars/handlebars.runtime.js');
    if(index) {
        app.legacyFilesToAppend[index] = 'bower_components/handlebars/handlebars.js';
    }
}
replaceHandlebarsRuntime(app);
wayne-o commented 9 years ago

I am getting this same issue - where does the above code go to fix it? Is there no real bug here? this seems a little hacky

jackmatt2 commented 9 years ago

Well it seems like it might be an ember-idx-modal issue after all. The code above goes into your Brocfile.js, just above module.exports = app.toTree();

asaf commented 9 years ago

Fixed.