Cannot find module '@ionic-native/diagnostic/ngx'.ts(2307)

I intalled the plugin Diagnostic as it says here: https://ionicframework.com/docs/native/diagnostic/

But when I am trying to import it to my app.module.ts, I am getting the error written in the title.

It is also in my package.json.
What am I missing?


solution found here.