admob-google-cordova icon indicating copy to clipboard operation
admob-google-cordova copied to clipboard

'Admob' refers to a value, but is being used as a type here. Did you mean 'typeof Admob'?

Open Iv4nildo opened this issue 2 years ago • 3 comments

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
               

image does anyone have a solution for this?

Iv4nildo avatar Jun 20 '22 23:06 Iv4nildo

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.

jahertor avatar Jul 10 '22 15:07 jahertor

Same issue.

skol-pro avatar Dec 20 '22 11:12 skol-pro

try

import {Admob} from '@awesome-cordova-plugins/admob/ngx';

difference is the ngx at the end

duca14036 avatar Jan 11 '23 09:01 duca14036