Angularjs Jhipster生成器在生产配置文件上出错
我正在尝试在生产配置文件中运行我的应用程序,我正在使用jhipster generator用于spring boot应用程序和angular。应用程序只运行页脚和背景,但应用程序的其余部分不运行,错误Angularjs Jhipster生成器在生产配置文件上出错,angularjs,spring-boot,jhipster,Angularjs,Spring Boot,Jhipster,我正在尝试在生产配置文件中运行我的应用程序,我正在使用jhipster generator用于spring boot应用程序和angular。应用程序只运行页脚和背景,但应用程序的其余部分不运行,错误 Uncaught Error: [$injector:modulerr] Failed to instantiate module myAppdue to: Error: [$injector:nomod] Module 'myApp' is not available! You eith
Uncaught Error: [$injector:modulerr] Failed to instantiate module myAppdue to:
Error: [$injector:nomod] Module 'myApp' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.5.8/$injector/nomod?p0=myApp
at http://localhost:8080/app/vendor-7004bf12ca.js:8:17716
at http://localhost:8080/app/vendor-7004bf12ca.js:8:27870
at n (http://localhost:8080/app/vendor-7004bf12ca.js:8:27343)
at http://localhost:8080/app/vendor-7004bf12ca.js:8:27655
at http://localhost:8080/app/vendor-7004bf12ca.js:9:4997
at r (http://localhost:8080/app/vendor-7004bf12ca.js:8:18164)
at f (http://localhost:8080/app/vendor-7004bf12ca.js:9:4845)
at rt (http://localhost:8080/app/vendor-7004bf12ca.js:9:6774)
at a (http://localhost:8080/app/vendor-7004bf12ca.js:8:25413)
at ie (http://localhost:8080/app/vendor-7004bf12ca.js:8:25723)
http://errors.angularjs.org/1.5.8/$injector/modulerr?p0=myApp&p1=Error%3A%20%5B%24injector%3Anomod%5D%20Module%20'myApp'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.5.8%2F%24injector%2Fnomod%3Fp0%3DdigitalBlogApp%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A8%3A17716%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A8%3A27870%0A%20%20%20%20at%20n%20(http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A8%3A27343)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A8%3A27655%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A9%3A4997%0A%20%20%20%20at%20r%20(http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A8%3A18164)%0A%20%20%20%20at%20f%20(http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A9%3A4845)%0A%20%20%20%20at%20rt%20(http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A9%3A6774)%0A%20%20%20%20at%20a%20(http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A8%3A25413)%0A%20%20%20%20at%20ie%20(http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A8%3A25723)
at http://localhost:8080/app/vendor-7004bf12ca.js:8:17716
at http://localhost:8080/app/vendor-7004bf12ca.js:8:27870
at n (http://localhost:8080/app/vendor-7004bf12ca.js:8:27343)
at http://localhost:8080/app/vendor-7004bf12ca.js:8:27655
at http://localhost:8080/app/vendor-7004bf12ca.js:9:4997
at r (http://localhost:8080/app/vendor-7004bf12ca.js:8:18164)
at f (http://localhost:8080/app/vendor-7004bf12ca.js:9:4845)
at rt (http://localhost:8080/app/vendor-7004bf12ca.js:9:6774)
at a (http://localhost:8080/app/vendor-7004bf12ca.js:8:25413)
at ie (http://localhost:8080/app/vendor-7004bf12ca.js:8:25723)
http://errors.angularjs.org/1.5.8/$injector/modulerr?p0=myApp&p1=Error%3A%20%5B%24injector%3Anomod%5D%20Module%20'myApp'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.5.8%2F%24injector%2Fnomod%3Fp0%3DdigitalBlogApp%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A8%3A17716%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A8%3A27870%0A%20%20%20%20at%20n%20(http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A8%3A27343)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A8%3A27655%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A9%3A4997%0A%20%20%20%20at%20r%20(http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A8%3A18164)%0A%20%20%20%20at%20f%20(http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A9%3A4845)%0A%20%20%20%20at%20rt%20(http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A9%3A6774)%0A%20%20%20%20at%20a%20(http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A8%3A25413)%0A%20%20%20%20at%20ie%20(http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A8%3A25723)
at http://localhost:8080/app/vendor-7004bf12ca.js:8:17716
at http://localhost:8080/app/vendor-7004bf12ca.js:9:5273
at r (http://localhost:8080/app/vendor-7004bf12ca.js:8:18164)
at f (http://localhost:8080/app/vendor-7004bf12ca.js:9:4845)
at rt (http://localhost:8080/app/vendor-7004bf12ca.js:9:6774)
at a (http://localhost:8080/app/vendor-7004bf12ca.js:8:25413)
at ie (http://localhost:8080/app/vendor-7004bf12ca.js:8:25723)
at re (http://localhost:8080/app/vendor-7004bf12ca.js:8:24962)
at HTMLDocument.<anonymous> (http://localhost:8080/app/vendor-7004bf12ca.js:13:25627)
at p (http://localhost:8080/app/vendor-7004bf12ca.js:2:8692)
Uncaught错误:[$injector:modulerr]未能实例化模块myapp,原因是:
错误:[$injector:nomod]模块“myApp”不可用!您要么拼错了模块名,要么忘记加载它。如果注册模块,请确保将依赖项指定为第二个参数。
http://errors.angularjs.org/1.5.8/$injector/nomod?p0=myApp
在http://localhost:8080/app/vendor-7004bf12ca.js:8:17716
在http://localhost:8080/app/vendor-7004bf12ca.js:8:27870
在n(http://localhost:8080/app/vendor-7004bf12ca.js:8:27343)
在http://localhost:8080/app/vendor-7004bf12ca.js:8:27655
在http://localhost:8080/app/vendor-7004bf12ca.js:9:4997
在r(http://localhost:8080/app/vendor-7004bf12ca.js:8:18164)
在f(http://localhost:8080/app/vendor-7004bf12ca.js:9:4845)
在rt(http://localhost:8080/app/vendor-7004bf12ca.js:9:6774)
至少(http://localhost:8080/app/vendor-7004bf12ca.js:8:25413)
在ie(http://localhost:8080/app/vendor-7004bf12ca.js:8:25723)
http://errors.angularjs.org/1.5.8/$injector/modulerr?p0=myApp&p1=Error%3A%20%5B%24 injector%3Anomod%5D%20模块%20'myApp%20不可用!%20您%20将%20拼写为%20模块%20名称%20或%20忘记%20以%20加载%20它。%20如果%20注册%20a%20模块%20确保%20您%20将%20依赖项%20指定为%20秒%20参数。%0Ahttp%3A%2F错误。angularjs.org%2F1.5.8%2F%24injector%2Fnomod%3Fp0%3digitalblogapp%0A%20%20%20%20at%20http%3A%2F%2F%2Flocalhost%2f802f80%2Fvendor-7004bf12ca.js%3A8%3A17716%0A%20%20%20%20at%20http%3A%2F%2localhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A8%3A27870%0A%20%20%20%20at%20n%20(http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A8%2a27343)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A8%3A27655%0A%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A4997%0A%20%20%20%20%20at%20r%20(http%3A%2F%2Flocalhost%2fHost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%20f8a%20f20%20f20%20f%(http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A9%3A4845)%0A%20%20%20%20%20at%20rt%20(http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A9%3A6774)%0A%20%20%20%20%20a%20%(http%3A%2F%2Flocalhost%2f8080%2Fapp%2Fvendor-7004bf12ca.js%3A8%3A25413%20at%20%20%20%20%20%20%20%20%20ie(http%3A%2F%2localhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A8%3A25723)
在http://localhost:8080/app/vendor-7004bf12ca.js:8:17716
在http://localhost:8080/app/vendor-7004bf12ca.js:8:27870
在n(http://localhost:8080/app/vendor-7004bf12ca.js:8:27343)
在http://localhost:8080/app/vendor-7004bf12ca.js:8:27655
在http://localhost:8080/app/vendor-7004bf12ca.js:9:4997
在r(http://localhost:8080/app/vendor-7004bf12ca.js:8:18164)
在f(http://localhost:8080/app/vendor-7004bf12ca.js:9:4845)
在rt(http://localhost:8080/app/vendor-7004bf12ca.js:9:6774)
至少(http://localhost:8080/app/vendor-7004bf12ca.js:8:25413)
在ie(http://localhost:8080/app/vendor-7004bf12ca.js:8:25723)
http://errors.angularjs.org/1.5.8/$injector/modulerr?p0=myApp&p1=Error%3A%20%5B%24injector%3Anomod%5D%20Module%20'myApp'%20%20不可用!%20您%20将%20拼写错误%20模块%20名称%20或%20忘记%20加载%20它。%20如果%20注册%20a%20模块%20确保%20将%20依赖项%20指定为%20秒%20参数。%0Ahttp%3A%2F%2farrors.angularjs.org%2F1.5.8%2F%24injector%2Fnomod%3Fp0%3digitalblogapp%0A%20%20%20%20%20%20%20%20http%3A%2F%2F本地主机%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A8%3A17716%0A%20%20%20%20%20http%2F本地主机%2Fvendor-7004bf12ca.js%3A8%3A27870%20%20%20%20at10%20%20%20%20%2%2%2%20%20%2%2%2%2%2%2%2%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2%20%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%20%2%20%2%2%20%2%2%2%20%2%2%2%2%20%2%2%2%2%20%2%2%2%2%2%2%2%20%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%2%0A%20%20%20%20%20at%20f%20(http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A9%3A4845)%0A%20%20%20%20%20at%20rt%20(http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A6774)%0A%20%20%20%20%20%20%20at%20a%20(http%3A%2Flocalhost%3A8080%2Fapp%2Fapp%2Fvendor-7004bf12ca.js%2020%20%20at%20%20%(http%3A%2F%2localhost%3A8080%2Fapp%2Fvendor-7004bf12ca.js%3A8%3A25723)
在http://localhost:8080/app/vendor-7004bf12ca.js:8:17716
在http://localhost:8080/app/vendor-7004bf12ca.js:9:5273
在r(http://localhost:8080/app/vendor-7004bf12ca.js:8:18164)
在f(http://localhost:8080/app/vendor-7004bf12ca.js:9:4845)
在rt(http://localhost:8080/app/vendor-7004bf12ca.js:9:6774)
至少(http://localhost:8080/app/vendor-7004bf12ca.js:8:25413)
在ie(http://localhost:8080/app/vendor-7004bf12ca.js:8:25723)
在re(http://localhost:8080/app/vendor-7004bf12ca.js:8:24962)
在HTMLDocument(http://localhost:8080/app/vendor-7004bf12ca.js:13:25627)
在p(http://localhost:8080/app/vendor-7004bf12ca.js:2:8692)
这可能是什么?这可能是由于您在index.html中更改了某些内容,因为JHipster在为生产构建时使用gulp将脚本和css注入其中。请将您当前的版本与您在项目生成时在git中存档的版本进行比较。请告诉我您的节点版本您是否使用java-jar?回答正确,但现在我有其他问题,一些javascript文件是我下载并添加到项目中的自定义文件,这些文件没有正确地注入供应商,有什么想法吗?控制台ga