I have the error message “ERROR in src/app/app.module.ts(20,15): error TS2304: Cannot find name ‘ErrorHandler’.
[ng] src/app/app.module.ts(20,39): error TS2304: Cannot find name ‘IonicErrorHandler’.” following the docs “build your first app” after inserting " ```
providers: [
StatusBar,
SplashScreen,
Camera,
{provide: ErrorHandler, useClass: IonicErrorHandler}
],
can u show the code of the class IonicErrorHandler and app.module.ts? did you import both the ErrorHandler and IonicErrorHandler class in app.module.ts?
don’t you have a class called IonicErrorHandler? i didn’t see that in the imports. how do u import that in
this line
{provide: ErrorHandler, useClass: IonicErrorHandler}