You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/08/18 12:48:56 UTC

[GitHub] [cordova-plugin-inappbrowser] zulkarnainshah edited a comment on issue #702: Ionic: InAppBrowser is not assignable to type 'Provider'

zulkarnainshah edited a comment on issue #702:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/702#issuecomment-901081735


   @Sunny41  did you find any solutions?
   
   Here's a solution that worked for me. It has got something to do with the new ivy compiler for newer angular versions.
   
   Use the following to import in app.module.ts:
   
   `import { InAppBrowser } from "@ionic-native/in-app-browser/__ivy_ngcc__/ngx"
   `
   
   Then in the component/page where you actually have to inject it , import using the following:
   
   `import { InAppBrowser } from "@ionic-native/in-app-browser/ngx"`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org