Native Storage error: Cannot assign to read only property 'name' of function 'function ActionSheet()


#1

Install: sudo (–’ try) ionic plugin add cordova-plugin-nativestorage

platform.ready().then((readySource) => {

      NativeStorage.getItem("test")
      .then(
        data => console.log(data),
        error => console.error(error)
      );
    });

Error: Uncaught TypeError: Cannot assign to read only property ‘name’ of function 'function ActionSheet()