Angular 6 - can't resolve all parameters for AppComponent

前端 未结 10 898
时光取名叫无心
时光取名叫无心 2021-02-07 11:59

I am trying to build an application with Angular 6 and I am still setting everything up. But it seems there is something wrong with the dependency injection in my app.

10条回答
  •  南方客
    南方客 (楼主)
    2021-02-07 12:40

    I also got this issue but setting emitDecoratorMetadata": true in tsconfig solve the issue. Remember to restart the server.

    tsconfig.spec.json

    "compilerOptions": { "emitDecoratorMetadata": true, "outDir": "./out-tsc/spec",

提交回复
热议问题