Issue: app load blank after import GoogleAnalytics

#1

Hi,

I try to use GA by following https://ionicframework.com/docs/native/google-analytics/

However, once I import it in app.component.ts and instantiate it in constructor, the app will load only a blank page forever.
I haven’t yet call any method in ga.

once I remove the private ga: GoogleAnalytics in constructor, the app comes back.
No clue how to debug it, any hint?

 import { GoogleAnalytics } from "@ionic-native/google-analytics";
export class MyApp {
  ...
  constructor( ..., private ga: GoogleAnalytics) {}
  ...
}

Thanks!
D

#2

My bad, I didnt put it in app.module.ts first…
The error message actually was catched in ionic serve