We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi supporters, I installed this newest library on my React Js project, but got a the error message:
Attempted import error: 'google' is not exported from '@alugha/ima'.
Here is my code:
` import React, {Component} from "react"; import { loadImaSdk, google } from "@alugha/ima";
class AdsVideo extends Component<any, any> { public readonly width = 320; public readonly height = 180;
private adsManager: google.ima.AdsManager | undefined; private adsLoader: google.ima.AdsLoader | undefined; private adDisplayContainer: google.ima.AdDisplayContainer | undefined; private videoContent: HTMLVideoElement | undefined; private ima: any; async componentDidMount() { try{ this.ima = await loadImaSdk() this.initData(this.ima) } catch (e) { console.log("SDK could not be loaded. Check your ad blocker!") } } initData(ima: any) { this.videoContent = document.getElementById("ads-video--content-element") as HTMLVideoElement this.requestAds(ima) }
}`
Dependencies: "@alugha/ima": "^2.0.3", "react": "^16.12.0", "typescript": "^3.7.5", ...
Please check this issue. Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi supporters,
I installed this newest library on my React Js project, but got a the error message:
Attempted import error: 'google' is not exported from '@alugha/ima'.
Here is my code:
`
import React, {Component} from "react";
import { loadImaSdk, google } from "@alugha/ima";
class AdsVideo extends Component<any, any> {
public readonly width = 320;
public readonly height = 180;
}`
Dependencies:
"@alugha/ima": "^2.0.3",
"react": "^16.12.0",
"typescript": "^3.7.5",
...
Please check this issue. Thanks
The text was updated successfully, but these errors were encountered: