admob-google-cordova
admob-google-cordova copied to clipboard
'Admob' refers to a value, but is being used as a type here. Did you mean 'typeof Admob'?
i'm following the documentation on a capacitor app
https://ionicframework.com/docs/native/admob but this error made me stop:
Error: src/app/tab1/tab1.page.ts:13:20 - error TS2749: 'Admob' refers to a value, but is being used as a type here. Did you mean 'typeof Admob'?
13 private admob: Admob
does anyone have a solution for this?
Same here. I tried with:
import { AdmobOriginal } from '@awesome-cordova-plugins/admob';
And in constructor:
private admob: AdmobOriginal
And now editor is okay, but ionic doesn't compile.
I ended using "Admob Plus" instead.
Same issue.
try
import {Admob} from '@awesome-cordova-plugins/admob/ngx';
difference is the ngx at the end