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

White page when running in production #14

Closed williamrussell-grindr closed 7 years ago

williamrussell-grindr commented 8 years ago

I have a generic Monolith application from JHipster. The first thing I did was install Material Design. However, when I run for production, it only displays a blank white page.

Any help?

moifort commented 8 years ago
  1. What's your JHipster console output display? In which profile did you run your application (dev, production, etc.)?
  2. What's your Chrome/Firefox/Other console output display?
williamrussell-grindr commented 8 years ago

Thanks for your response Moifort. It does appear to be my setup when compiling for production.

  1. This does not display anything, just normal output.
  2. Safari Logs
  3. Attached youtube video showing an example (unlisted) Youtube Material Design Issue
williamrussell-grindr commented 8 years ago

bootstrap-material.config.js cannot find "compileServiceConfig"?

` (function() { 'use strict';

    angular
        .module('acmeSiteApp')
        .config(bootstrapMaterialDesignConfig);

    compileServiceConfig.$inject = [];

    function bootstrapMaterialDesignConfig() {
          $.material.init();

    }

})();

`

williamrussell-grindr commented 8 years ago

Update:

Im not sure if this is correct, but I changed: compileServiceConfig.$inject = []; to bootstrapMaterialDesignConfig.$inject = [];

And I get this error now.

Error: [$injector:modulerr] Failed to instantiate module acmeSiteApp due to: undefined is not an object (evaluating '$.material.init')

williamrussell-grindr commented 7 years ago

bootstrapMaterialDesignConfig.$inject = [];

plus clearing the cache seems to have fixed it.

letting you close this... in-case that line was wrong.

moifort commented 7 years ago

Cool! 👍 Have a nice coding!