2017-09-23 1 views
0

Je suis en train d'exécuter mon application dans le profil de production, j'utilise jhipster-générateur pour l'application spring-boot et angulaire. L'application ne fonctionne le pied de page et l'arrière-plan, mais le reste du Nope aplication, l'erreurJhipster-générateur d'erreur sur le profil de production

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) 

que peut-il être?

+0

s'il vous plaît dites-moi la version de votre noeud –

+0

Avez-vous exécuté la guerre construite par prod localement en utilisant java -jar? –

Répondre

1

Cela est probablement dû à quelque chose que vous avez changé dans index.html parce que JHipster utilise gulp pour injecter des scripts et css dedans lors de la construction pour la production. Comparez votre version actuelle avec celle que vous avez archivée dans git au moment de la génération du projet.

+0

Bonne réponse, mais maintenant j'ai d'autres problèmes, certains fichiers javascript personnalisés que j'ai téléchargés et ajoutés dans le projet, ces fichiers ne sont pas correctement injectés dans le vendeur, des idées? la console m'a donné la même console d'erreur mais maintenant je sais quel module échoue, mais je ne sais pas comment résoudre ce problème –

+0

Si ma réponse est correcte, s'il vous plaît envisager de l'accepter. J'ai déjà répondu à cette question sur stackoverflow, le problème est les fichiers bower.json de vos dépendances qui ne déclarent pas la propriété principale correctement. Vous devez utiliser la propriété overrides dans votre projet bower.json. –