Ionic-native/network-interface Error: Class Not Found


Hello, I’m trying to use the Ionic Native Network Interface plugin but keep failing to get the wifi ip address and I’m not sure why. I would love for someone to point me in the right direction if possible.

Here’s what I have currently:

import { NetworkInterface } from '@ionic-native/network-interface/ngx';
import { Injectable } from '@angular/core';
import { Platform } from '@ionic/angular';

export class MyService {
    constructor( private networkInterface: NetworkInterface, private platform: Platform ) {
        platform.ready().then(() => {
                .then(address => console.log('IP: ' + address.ip + ', Subnet: ' + address.subnet))
                .catch(error => console.log('ERROR: ' + error));
Native Plugin UniqueDeviceId not working with Ionic 3

I’m not sure if its the same issue, i am able to compile on android.
I copied my code from other app that did work with minor adjustments:

(new module has ngx at the end of @ionic-native/network-interface/ngx)

My error output in browser:

ERROR Error: Uncaught (in promise): TypeError: Object(...) is not a function
TypeError: Object(...) is not a function
    at NetworkInterface.getWiFiIPAddress

example code:

      this.networkInterface.getWiFiIPAddress().then((address) =>
         console.log("Check IP", address)     );

I have the same problem in my project. Have you found a solution?