错误:未捕获错误:未找到“ function(){}”的NgModule元数据。产品中的Angular Universal

时间:2019-02-19 13:54:44

标签: angular-universal

在带弹簧的产品中运行角度通用时,收到以下错误:

 Uncaught Error: No NgModule metadata found for 'function(){}'.
    at e.resolve (main.a13a69d566149a0cec5b.js:1)
    at e.getNgModuleMetadata (main.a13a69d566149a0cec5b.js:1)
    at e._loadModules (main.a13a69d566149a0cec5b.js:1)
    at e._compileModuleAndComponents (main.a13a69d566149a0cec5b.js:1)
    at e.compileModuleAsync (main.a13a69d566149a0cec5b.js:1)
    at e.compileModuleAsync (main.a13a69d566149a0cec5b.js:1)
    at main.a13a69d566149a0cec5b.js:1
    at e.bootstrapModule (main.a13a69d566149a0cec5b.js:1)
    at Module.zUnb (main.a13a69d566149a0cec5b.js:1)
    at c (runtime.1261f568282a4018d1f8.js:1)
    at Object.0 (main.a13a69d566149a0cec5b.js:1)
    at c (runtime.1261f568282a4018d1f8.js:1)
    at t (runtime.1261f568282a4018d1f8.js:1)
    at Array.r [as push] (runtime.1261f568282a4018d1f8.js:1)
    at main.a13a69d566149a0cec5b.js:1

尝试用../resources/templates/webapp替换dist / server

0 个答案:

没有答案