未捕获的错误:无法解析ApplicationModule的所有参数:(?)

时间:2019-06-27 16:29:20

标签: javascript angular

我从angular6迁移到angular7,只有在端口4200运行良好时才尝试进入应用程序时遇到问题

GET https://unpkg.com/core-js@3.1.4/client/shim.min.js net::ERR_ABORTED 404
compiler.js:1021 Uncaught Error: Can't resolve all parameters for ApplicationModule: (?).
    at syntaxError (compiler.js:1021)
    at CompileMetadataResolver._getDependenciesMetadata (compiler.js:10943)
    at CompileMetadataResolver._getTypeMetadata (compiler.js:10836)
    at CompileMetadataResolver.getNgModuleMetadata (compiler.js:10704)
    at CompileMetadataResolver.getNgModuleSummary (compiler.js:10514)
    at compiler.js:10628
    at Array.forEach (<anonymous>)
    at CompileMetadataResolver.getNgModuleMetadata (compiler.js:10616)
    at CompileMetadataResolver.getNgModuleSummary (compiler.js:10514)
    at compiler.js:10601

{
  "compileOnSave": false,
  "compilerOptions": {
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es5",
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2016",
      "dom"
    ],
    "baseUrl": "src",
    "paths": {
      "@app/*": [
        "app/*"
      ]
    },
    "module": "es2015"
  }
}

已经尝试添加

import 'core-js/es6/reflect';
import 'core-js/es7/reflect';

0 个答案:

没有答案