【发布时间】:2017-09-25 16:01:05
【问题描述】:
在论坛上花了很多时间后,任何提示:
运行时错误 0:0 错误,原因是:没有文件提供程序!
在我的 app.module.ts 中:
....
import { File } from '@ionic-native/file';
....
....
providers: [
StatusBar,
SplashScreen,
File,
{provide: ErrorHandler, useClass: IonicErrorHandler}
]
在服务提供者中...
@Component({
providers: [File]
})
应用启动时出现上述错误信息...
将一些更新作为“离子插件添加cordova-plugin-file”但没有...
有什么想法吗?
问候
JL
【问题讨论】:
标签: cordova typescript ionic2