Why error in Angular 5 as : has no exported member 'OpaqueToken'.?

后端 未结 5 1424
刺人心
刺人心 2021-01-13 12:20

I have an Angular 4 application, which I am upgrading to Angular 5.

I am getting the following error.

ERROR in src/app/application/services/g

5条回答
  •  不要未来只要你来
    2021-01-13 12:56

    The OpaqueToken got removed. You have to use the InjectionToken instead. I am facing the same problem. At the Moment the "best" solution is to replace the tokens after each code-gen build. But thats not a permanent solution.

    Please contribute to this issue: https://github.com/swagger-api/swagger-codegen/issues/7324

提交回复
热议问题