Ionic 4 reach InAppBrowser "this.iab.create is not a function"

I am on Ionic 4 react. Trying for an InAppBrowser.
Using Capacitor
I always get “this.iab.create is not a function” while running it.

npm install cordova-plugin-inappbrowser
npm install @ionic-native/in-app-browser
ionic cap sync

Help from this link

Thanks
Eugene

Do solve this one? I also getting the same error

Capacitor provides its own Browser API so I guess you should use that one, not the Cordova plugin.

Browser is working. But, its not like InAppBrowser, it opens a page with address bar. We need a browser inside app.

We are still struggling to get that work.

Reagrds
Eugene

@anitaeugene @xmarxx is anyone going to show some code??

import { InAppBrowser } from '@ionic-native/in-app-browser';

export const Tab1 = () => {

  const open = (_url:string) => {
    let browser = InAppBrowser.create(_url);
    browser.show();
  }

I always get error on create.

you dont use ngx on the import… take a look at my code again

import { InAppBrowser } from '@ionic-native/in-app-browser';

thank you it works now

Did ngx helped to work?

do NOT use ngx…see text above