Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/118.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Nativescript::错误TS2307:找不到模块';图像资产&x27;_Android_Ios_Nativescript_Angular2 Nativescript - Fatal编程技术网

Android Nativescript::错误TS2307:找不到模块';图像资产&x27;

Android Nativescript::错误TS2307:找不到模块';图像资产&x27;,android,ios,nativescript,angular2-nativescript,Android,Ios,Nativescript,Angular2 Nativescript,安卓API21 tns 2.3.0 我正在尝试使用 在实现代码后,我在运行应用程序时出现以下错误- tns livesync ios——设备7a3c131309432ebae1a483f134ec8a4f8cdeecf4——手表 应用程序将仅部署在由提供的索引或标识符指定的设备上。 从/Users/mohit/work/Mobile/native/finly ng/hooks/before prepare/nativescript-dev-typescript.js执行prepare hook之

安卓API21 tns 2.3.0

我正在尝试使用

在实现代码后,我在运行应用程序时出现以下错误-

tns livesync ios——设备7a3c131309432ebae1a483f134ec8a4f8cdeecf4——手表

应用程序将仅部署在由提供的索引或标识符指定的设备上。 从/Users/mohit/work/Mobile/native/finly ng/hooks/before prepare/nativescript-dev-typescript.js执行prepare hook之前 找到对等类型脚本2.0.3 app/pages/expensephoto/expense photo.component.ts(2,28):错误TS2307:找不到模块“图像资产”

节点_modules/nativescript camera/nativescript camera.d.ts(1,29):错误TS2307:找不到模块“图像资源”

TypeScript编译器失败,退出代码为1


如何解决此问题?

您所指的示例应用程序正在使用tns core-modules@next其中,图像资源模块存在。本模块将随NativeScript 2.4.0正式发布,预计几天后发布

同时,如果你想尝试这个和其他未发布的功能,你可以像这样安装@next的tns核心模块

tns plugin remove tns-core-modules
tns plugin add tns-core-modules@next

现在,您的应用程序将可以访问image asset。

您所指的示例应用程序正在使用tns core-modules@next其中,图像资源模块存在。本模块将随NativeScript 2.4.0正式发布,预计几天后发布

同时,如果你想尝试这个和其他未发布的功能,你可以像这样安装@next的tns核心模块

tns plugin remove tns-core-modules
tns plugin add tns-core-modules@next

现在,您的应用程序将可以访问image asset。

Hi Moagle,您能否提供有关您正在部署的nativescript sdk设备的更多信息。我在iOS和安卓设备上进行了测试,一切正常。同时,尝试删除
节点\u模块
平台
挂钩
文件夹。使用
npm cache clear
清理缓存并尝试再次构建它
tns run
Hi moagle,您能否提供有关正在部署nativescript sdk的设备的更多信息。我在iOS和安卓设备上进行了测试,一切正常。同时,尝试删除
节点\u模块
平台
挂钩
文件夹。使用
npm cache clear
清理缓存,然后再次尝试构建它
tns run