moifort / generator-jhipster-bootstrap-material-design

Add material design to your JHipster application
Do What The F*ck You Want To Public License
60 stars 18 forks source link

Uncaught ReferenceError: compileServiceConfig is not defined #15

Open mraible opened 7 years ago

mraible commented 7 years ago

After installing this plugin, it worked locally. However, after I deploy to Heroku (or upgrade JHipster), there's an error:

Uncaught ReferenceError: compileServiceConfig is not defined
mraible commented 7 years ago

To fix, _bootstrap-material.config.js needs to be:

(function() {
    'use strict';

    angular
        .module('<%=angularAppName%>')
        .config(bootstrapMaterialDesignConfig);

    bootstrapMaterialDesignConfig.$inject = [];

    function bootstrapMaterialDesignConfig() {
        $.material.init();
    }
})();
moifort commented 7 years ago

Thanks I will do the fix