【HarmonyOS】Check whether undefined attributes or methods are used in the hvigorconfig.ts a
【HarmonyOS NEXT】Check whether undefined attributes or methods are used in the hvigorconfig.ts and hvigorfile.ts files.
##鸿蒙开发能力 ##HarmonyOS SDK应用服务##鸿蒙金融类应用 (金融理财#
HarmonyOS NEXT
一、问题背景:
- Try the following:
Check whether undefined attributes or methods are used in the hvigorconfig.ts and hvigorfile.ts files. Go to the official website for help More info: https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/ide-hvigor-faqs-V5#section119742124315
hvigor ERROR: BUILD FAILED in 2 s 107 ms
Process finished with exit code -1
*尝试以下操作:
检查hvigorconfig.ts和hvigorfile.ts文件中是否使用了未定义的属性或方法。 前往官方网站寻求帮助 更多信息:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/ide-hvigor-faqs-V5#section119742124315 hvigor错误:在2秒107毫秒内构建失败 进程已完成,退出代码为-1
二、解决方案:
1.碰到该问题,先根据https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/ide-hvigor-faqs-V5#section119742124315 网址提示,检查hvigorconfig.ts文件和hvigorfile.ts文件里的代码 2.如果第一步没有问题,那就和我碰到的一致。因为IDE目前有些写法虽然有问题,但是也没报错,就会导致这种奇怪的编译问题。
我是因为import写法不合法,之前是想测试一下写法,忘记删除了。但是IDE也没提示报错,就忘记删除了。。仅供参考,其实可以根据报错语句最上面的编译执行命令,最后提示的地方,寻找线索。
- 1回答
- 0粉丝
- 0关注
- The "paths[1]" argument must be of type string. Received undefined 错误的解决
- (四七)HarmonyOS Design 的 A/B 测试与优化
- 【HarmonyOS NEXT】设备显示白屏 syswarning happended in XXX
- Openharmony App development tutorial (0) The First Glance
- Openharmony App development tutorial (1) Creating a New Project
- 【HarmonyOS NEXT】lv-markdown-in 三方库用法说明
- 【HarmonyOS NEXT】lv-markdown-in 三方库用法说明
- 《仿盒马》app开发技术分享-- 个人中心页or静态头像选择(业务逻辑)(22)
- (六)ArkCompiler 对 ArkTS、TS、JS 语言的支持及编译优化
- 「Mac玩转仓颉内测版20」PTA刷题篇11 - L1-011 A-B
- HarmonyOS5开发:Ark-TS 深度解析:从状态管理到性能优化,揭秘鸿蒙开发的底层逻辑
- 鸿蒙5开发:Ark-TS UI 动效设计指南:让你的应用界面 “活” 起来
- 关于bindsheet在横屏、2in1下显示不正常的情况及解决方案##ArkTS##
- 鸿蒙 5 开发工具 Ark-TS UI 到底有多好用?一篇文章讲明白
- Ark-TS:鸿蒙开发的 “万能钥匙”,让跨设备开发像搭积木一样简单