簡體   English   中英

生產配置文件中的Jhipster-generator錯誤

[英]Jhipster-generator error on production profile

我正在嘗試在生產配置文件中運行我的應用程序,我正在將jhipster-generator用於spring-boot應用程序和angular。 該應用程序僅運行頁腳和背景,但其余部分不重復應用,錯誤

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)

會是什么呢?

這可能是由於您在index.html中進行了更改,因為JHipster在為生產而構建時會使用gulp向其注入腳本和CSS。 將當前版本與您在項目生成時在git中存檔的版本進行比較。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM