Ionic 本机文件开启器 2 错误 class 未找到

Ionic native file opener 2 error class not found

我在尝试打开文件时收到错误消息Class not found

.ts

open(){
  this.platform.ready().then(() => {
   this.fileOpener.open(this.entry.nativeURL, this.attachment.mime).then(() => {
    console.log('file opened')
   }, err => {
    console.log('error open file: ', err)
  });
 });
}

this.entry.nativeURL是使用File Transfer

的下载结果

本地网址:file:///storage/emulated/0/Download/someFile.docx

this.fileTransfer.download(url, this.storageDirectory + this.attachment.fileName, trustAllHosts).then((entry) => {
 console.log('entry: ', entry);
 this.entry = entry;
}

this.attachment.mime: application/vnd.openxmlformats-officedocument.wordprocessingml.document

我也试过 application/pdf 一个 pdf 文件,没用

正在运行...问题出在 运行 应用程序上线 --livereload