小编Jay*_*ani的帖子

o.Subject 不是构造函数 - Angular 10

Ng serveng build --prod命令工作正常,但是当我在服务器上部署应用程序时,出现以下错误:-

TypeError: o.Subject is not a constructor
at new e (vendor-esnext.js:1)
at Object.useFactory (vendor-esnext.js:1)
at Object.i [as factory] (vendor-esnext.js:1)
at Xo.hydrate (vendor-esnext.js:1)
at Xo.get (vendor-esnext.js:1)
at Jf.get (vendor-esnext.js:1)
at Object.get (vendor-esnext.js:1)
at Gn (vendor-esnext.js:1)
at Module.Sl (vendor-esnext.js:1)
at Mn.e.?fac [as factory] (vendor-esnext.js:1)
Run Code Online (Sandbox Code Playgroud)

tsconfig.base.json

{"compilerOptions": {
"baseUrl": "",
"allowSyntheticDefaultImports": true,
"declaration": false,
"downlevelIteration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
  "dom",
  "es2017"
],
"module": "esnext",
"moduleResolution": "node",
"sourceMap": true,
"target": "ESNext",
"paths": {
  "@angular/*": [ …
Run Code Online (Sandbox Code Playgroud)

rxjs angular angular10

20
推荐指数
1
解决办法
5655
查看次数

标签 统计

angular ×1

angular10 ×1

rxjs ×1