Ionic Uncaught Error: Cannot find module “.” when importing a service provider

后端 未结 2 949
梦谈多话
梦谈多话 2020-12-17 02:18

I am trying to import a new service provider that I just created after pulling from the latest branch in my ionic app.

When I try to import this line of code:

<
2条回答
  •  一生所求
    2020-12-17 02:36

    I finally figure it out to solve the problem. The error occurs when I import the events from ionic-angular.

    So instead of: import { Events } from 'ionic-angular/umd';

    Just remove the umd at the end. I don't know why it happened because I am using auto import from my vs code.

提交回复
热议问题