我有一个Jhipster 4项目,当我尝试运行mvn -Pprod包时,资产是在/ target / www内生成的,但是当我尝试运行项目的Angular部分时,我得到一个白页和下面的错误在控制台上:
"Error: moduleId should be a string in "e". See link for more information.
如果您使用的是Webpack,则应该内联模板和样式,请参阅链接。 at e.d(file:/// C:/Users/Patricia%20Alves/Desktop/delivery/company%20delivery/target/www/f747e4dbb5d31963669b.polyfills.bundle.js:50:1731) 在e [作为构造函数](file:/// C:/Users/Patricia%20Alves/Desktop/delivery/company%20delivery/target/www/vendor.dll.js:1714:420) at new e(file:/// C:/Users/Patricia%20Alves/Desktop/delivery/company%20delivery/target/www/vendor.dll.js:59:749) at s(file:/// C:/Users/Patricia%20Alves/Desktop/delivery/company%20delivery/target/www/vendor.dll.js:305:6242) at t._loadDirectiveMetadata(file:/// C:/Users/Patricia%20Alves/Desktop/delivery/company%20delivery/target/www/vendor.dll.js:312:4000) 在file:/// C:/Users/Patricia%20Alves/Desktop/delivery/company%20delivery/target/www/vendor.dll.js:312:7106 在Array.forEach() at t.loadNgModuleDirectiveAndPipeMetadata(file:/// C:/Users/Patricia%20Alves/Desktop/delivery/company%20delivery/target/www/vendor.dll.js:312:7078) 在file:/// C:/Users/Patricia%20Alves/Desktop/delivery/company%20delivery/target/www/vendor.dll.js:1105:2432 在Array.forEach() at t._loadModules(file:/// C:/Users/Patricia%20Alves/Desktop/delivery/company%20delivery/target/www/vendor.dll.js:1105:2385) at t._compileModuleAndComponents(file:/// C:/Users/Patricia%20Alves/Desktop/delivery/company%20delivery/target/www/vendor.dll.js:1105:1803) at t.compileModuleAsync(file:/// C:/Users/Patricia%20Alves/Desktop/delivery/company%20delivery/target/www/vendor.dll.js:1105:1226) 在e._bootstrapModuleWithZone(file:/// C:/Users/Patricia%20Alves/Desktop/delivery/company%20delivery/target/www/vendor.dll.js:762:2664) 在e.bootstrapModule(file:/// C:/Users/Patricia%20Alves/Desktop/delivery/company%20delivery/target/www/vendor.dll.js:762:2289)“