Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Iv4nildo opened this issue Jun 20, 2022 · 3 comments

Comments

@Iv4nildo
Copy link

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?

@jahertor
Copy link

jahertor commented Jul 10, 2022

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.

@skol-pro
Copy link

Same issue.

@duca14036
Copy link

try

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

difference is the ngx at the end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants