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

Following directions on main page leads to error #289

Open
harryt2 opened this issue Oct 12, 2023 · 1 comment
Open

Following directions on main page leads to error #289

harryt2 opened this issue Oct 12, 2023 · 1 comment

Comments

@harryt2
Copy link

harryt2 commented Oct 12, 2023

If you follow the instructions and install

npm install --save @capacitor-community/[email protected]

It will throw errors about classes like AdmobConsentStatus not being exported.

But if you install npm install --save @capacitor-community/admob@latest

Everything works fine

@mledwards
Copy link

Hmm, the instructions are missing the AdmobConsentStatus import.

Change the import line to: import { AdMob, AdmobConsentStatus } from "@capacitor-community/admob";

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

2 participants