TypeError: You provided 'undefined' where a stream was expected

前端 未结 10 674
广开言路
广开言路 2021-01-11 09:42

I have an Ionic app that has a user provider with a signup() method:

doSignup() {
  // set         


        
10条回答
  •  孤街浪徒
    2021-01-11 10:23

    In my case, the error was caused by a different problem.

    I was providing the service in two different points. I had written:

    @Injectable({provideIn: 'root'}) and I was also providing the module in the app.module.ts. So if you encountered this error you can check this before going ahead

提交回复
热议问题