HarmonyOS 鸿蒙DevEco-studio Next Developer Beta 2打包app编译失败
HarmonyOS 鸿蒙DevEco-studio Next Developer Beta 2打包app编译失败
The “path” argument must be of type string.
path是指哪个配置文件哪个字段下的path?, path指的是什么的path?
关于HarmonyOS 鸿蒙DevEco-studio Next Developer Beta 2打包app编译失败的问题,您也可以访问:https://www.itying.com/category-93-b0.html 联系官网客服。
HarmonyOS的社区里有很多技术大牛分享经验,学到了很多有用的知识。
有要学HarmonyOS AI的同学吗,联系我:https://www.itying.com/goods-1206.html
是升级到了Beta3么?在Beta2上遇到同样的问题
您好,可以在hvigor-config.json5文件中加入一个字段,可以看到报错的具体位置
"debugging": {
"stacktrace": true /* Disable stacktrace compilation. Value: [ true | false ]. Default: false */
},
找HarmonyOS工作还需要会Flutter的哦,有需要Flutter教程的可以学学大地老师的教程,很不错,B站免费学的哦:https://www.bilibili.com/video/BV1S4411E7LY/?p=17
> hvigor ERROR: Error: The “path” argument must be of type string. Received undefined COMPILE RESULT:FAIL {ERROR:1} at runArkPack (/Applications/DevEco-Studio.app/Contents/tools/hvigor/hvigor-ohos-plugin/node_modules/@ohos/hvigor-arkts-compose/dist/src/arkts-pack.js:1:5395) TypeError [PLUGIN_ERROR]: The “path” argument must be of type string. Received undefined at new NodeError (node:internal/errors:405:5) at validateString (node:internal/validators:162:11) at Object.join (node:path:1171:7) at deleteInvalidFileItem (/Applications/DevEco-Studio.app/Contents/tools/hvigor/hvigor-ohos-plugin/node_modules/@ohos/coverage/lib/src/plugin/buildInstrument.js:43:16) at Object.buildStart (/Applications/DevEco-Studio.app/Contents/tools/hvigor/hvigor-ohos-plugin/node_modules/@ohos/coverage/lib/src/plugin/buildInstrument.js:35:5) at /Applications/DevEco-Studio.app/Contents/tools/hvigor/hvigor-ohos-plugin/node_modules/@ohos/hvigor-arkts-base/node_modules/rollup/dist/shared/rollup.js:24555:40 at async Promise.all (index 6) at async PluginDriver.hookParallel (/Applications/DevEco-Studio.app/Contents/tools/hvigor/hvigor-ohos-plugin/node_modules/@ohos/hvigor-arkts-base/node_modules/rollup/dist/shared/rollup.js:24483:9) at async /Applications/DevEco-Studio.app/Contents/tools/hvigor/hvigor-ohos-plugin/node_modules/@ohos/hvigor-arkts-base/node_modules/rollup/dist/shared/rollup.js:25670:13 at async catchUnfinishedHookActions (/Applications/DevEco-Studio.app/Contents/tools/hvigor/hvigor-ohos-plugin/node_modules/@ohos/hvigor-arkts-base/node_modules/rollup/dist/shared/rollup.js:24917:20) > hvigor ERROR: BUILD FAILED in 4 s 376 ms
请问是hvigor-ohos-plugin这个组件的问题吗?
请问Deveco Studio是哪个版本的呢,使用的时候是直接通过Deveco Studio打开工程的吗
DevEco Studio NEXT Developer Beta2 Build #DS-233.14475.28.36.503502 Build Version: 5.0.3.502, built on July 28, 2024 Runtime version: 17.0.10+1-b1087.17 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 14.5 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 8 Metal Rendering is ON Registry: idea.plugins.compatible.build=IC-233.14475.28 Non-Bundled Plugins: com.intellij.plugins.xcodekeymap (233.11799.172)
是的,直接打开