White page when running in production
williamrussell-grindr opened this issue · comments
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?
- What's your JHipster console output display? In which profile did you run your application (dev, production, etc.)?
- What's your Chrome/Firefox/Other console output display?
Thanks for your response Moifort.
It does appear to be my setup when compiling for production.
- This does not display anything, just normal output.
- Safari Logs
- Attached youtube video showing an example (unlisted)
Youtube Material Design Issue
bootstrap-material.config.js cannot find "compileServiceConfig"?
`
(function() {
'use strict';
angular
.module('acmeSiteApp')
.config(bootstrapMaterialDesignConfig);
compileServiceConfig.$inject = [];
function bootstrapMaterialDesignConfig() {
$.material.init();
}
})();
`
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')
bootstrapMaterialDesignConfig.$inject = [];
plus clearing the cache seems to have fixed it.
letting you close this... in-case that line was wrong.
Cool! 👍 Have a nice coding!