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
in-app-browser: error WEBPACK_IMPORTED_MODULE_2__.InAppBrowser.create is not a function #4754
Comments
import { InAppBrowser, InAppBrowserObject, InAppBrowserOptions } from '@awesome-cordova-plugins/in-app-browser/ngx';
class InAppBrowserService{
private browser: InAppBrowserObject;
constructor( private readonly inAppBrowser: InAppBrowser ) {}
private async openWithInAppBrowser(url: string, config: InAppBrowserOptions) {
this.browser = this.inAppBrowser.create(url, '_blank', config);
....
}
}
|
Thank you for your response. |
please provide your package.json |
Maybe the current version does not support the latest angular 17+ Suggestions for now:
2 Do not use @awesome-cordova-plugins/in-app-browser and create service for wrap cordova-plugin-inappbrowser plugin |
I am using the InAppBrowser plugin in my Ionic/Angular standalone application and when the create function is called, I get this error:
awesome_cordova_plugins_in_app_browser_ngx__WEBPACK_IMPORTED_MODULE_2_.InAppBrowser.create is not a function
This is my code:
import { InAppBrowser, InAppBrowserObject } from '@awesome-cordova-plugins/in-app-browser/ngx';
let browser: InAppBrowserObject = InAppBrowser.create(url, '_blank', "location=no,clearsessioncache=yes,clearcache=yes");
I've already searched the forums but I can't find another developer who has the same error. Can you help me, please?
The text was updated successfully, but these errors were encountered: