';获得';在最新的nativescript中未定义

';获得';在最新的nativescript中未定义,nativescript,audio-player,Nativescript,Audio Player,我正在尝试在最新的nativescript项目中使用“nativescript音频播放器” 我得到这个错误 CONSOLE ERROR: ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'getter' of undefined TypeError: Cannot read property 'getter' of undefined at file: node_modules/nativescript-a

我正在尝试在最新的nativescript项目中使用“nativescript音频播放器”

我得到这个错误

 CONSOLE ERROR: ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'getter' of undefined
TypeError: Cannot read property 'getter' of undefined
at file: node_modules/nativescript-audio-player/ios/player.js:142:0
at new ZoneAwarePromise (file: node_modules/@nativescript/zone-js/zone-nativescript.js:902:0)
at TNSPlayer1.push.../node_modules/nativescript-audio-player/ios/player.js.TNSPlayer.playFromUrl (file: node_modules/nativescript-audio-player/ios/player.js:137:0)
at file: node_modules/nativescript-audio-player/ios/player.js:132:0
at new ZoneAwarePromise (file: node_modules/@nativescript/zone-js/zone-nativescript.js:902:0)
at TNSPlayer1.push.../node_modules/nativescript-audio-player/ios/player.js.TNSPlayer.initFromUrl (file: node_modules/nativescript-audio-player/ios/player.js:130:0)
at new HomeComponent (file: src/app/home/home.component.ts:19:21)
at NodeInjectorFactory.HomeComponent_Factory [as factory] (file:///app/2.js:91:65)
at getNodeInjectable (file: node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:4029:0)
at instantiateRootComponent (file: node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:7818:0)
at createRootComponent (file: node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:18368:0)
at ComponentFactory$1.create (file: node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:22184:0<…>
NativeScript debugger has opened inspector socket on port 18183 for org.nativescript.testproject.
Successfully synced application org.nativescript.testproject on device 49276EDF-3D22-4221-A592-103C9EC62FD2.
控制台错误:错误错误:未捕获(承诺中):类型错误:无法读取未定义的属性“getter”
TypeError:无法读取未定义的属性“getter”
文件:node_modules/nativescript audio player/ios/player.js:142:0
在新的ZoneAwarePromise(文件:node_modules/@nativescript/zone js/zone nativescript.js:902:0)
在TNSPlayer1.push…/node_modules/nativescript audio player/ios/player.js.TNSPlayer.playFromUrl(文件:node_modules/nativescript audio player/ios/player.js:137:0)
文件:node_modules/nativescript audio player/ios/player.js:132:0
在新的ZoneAwarePromise(文件:node_modules/@nativescript/zone js/zone nativescript.js:902:0)
在TNSPlayer1.push…/node_modules/nativescript audio player/ios/player.js.TNSPlayer.initFromUrl(文件:node_modules/nativescript audio player/ios/player.js:130:0)
在新的HomeComponent(文件:src/app/home/home.component.ts:19:21)
在NodeInjectorFactory.HomeComponent_工厂[作为工厂](file:///app/2.js:91:65)
在getNodeInjectable(文件:node_modules/@angular/core/_ivy_ngcc__/fesm2015/core.js:4029:0)
在实例化OTComponent时(文件:node_modules/@angular/core/_ivy\ngcc__/fesm2015/core.js:7818:0)
在createRootComponent(文件:node_modules/@angular/core/_ivy_ngcc__/fesm2015/core.js:18368:0)
在ComponentFactory$1.create(文件:node_modules/@angular/core/_ivy\u ngcc__/fesm2015/core.js:22184:0
NativeScript调试器已在端口18183上为org.NativeScript.testproject打开了检查器套接字。
已成功同步设备49276EDF-3D22-4221-A592-103C9EC62FD2上的应用程序org.nativescript.testproject。