【发布时间】:2019-07-11 20:02:41
【问题描述】:
我正在使用 nativescript 开发移动应用项目, 我使用了 photoviewer 插件,在我的手机中调试应用程序时它工作正常,但是当我尝试发布应用程序时,总是出现这个错误
找到对等的 TypeScript 3.1.6
node_modules/nativescript-photoviewer/photoviewer.d.ts(48,22): 错误 TS2304:找不到名称“UIColor”。
node_modules/nativescript-photoviewer/photoviewer.d.ts(54,24):错误 TS2304:找不到名称“UIColor”。
node_modules/nativescript-photoviewer/photoviewer.d.ts(60,23): 错误 TS2304:找不到名称“UIColor”。
node_modules/nativescript-photoviewer/photoviewer.d.ts(89,13): 错误 TS2304:找不到名称“UIImage”。
node_modules/nativescript-photoviewer/photoviewer.d.ts(94,24): 错误 TS2304:>找不到名称“UIImage”。 TypeScript 编译器失败,退出代码为 1
我尝试删除钩子、node_modules 和平台文件夹并重新运行 npm install 但没有任何效果, 如果有人帮忙,我将不胜感激 谢谢
【问题讨论】:
标签: node.js angular typescript nativescript