未实名验证无访问或操作权限
返回上一页不能发帖过快!
返回上一页上传文件错误!
返回上一页1#
1. 通过编译和适配指导书 MineHarmony Hi-Intelligent 1.0.2.319 http方式repo下载 源码未适配直接进行编译报错日志(附件:build.log),修改了几处路径报错。
2. 重新用ssh方式repo下载,按照文档适配之后进行编译报错(附件:build.log-sp)
麻烦帮忙看一下
以下为 1中描述的部分build.log
[8755/35088] ACTION //third_party/jsframework:gen_snapshot(//build/toolchain/ohos:ohos_clang_arm)
FAILED: obj/third_party/jsframework/dist/strip.native.min.js obj/third_party/jsframework/dist/jsMockSystemPlugin.js
/usr/bin/env ../../third_party/jsframework/js_framework_build.sh ../../third_party/jsframework/build.js ../../prebuilts/build-tools/common/nodejs/node-v12.18.4-linux-x64 ../../third_party/jsframework/runtime ../../prebuilts/build-tools/common/js-framework/node_modules ../../third_party/jsframework/package.json ../../third_party/jsframework/tsconfig.json ../../third_party/jsframework/.eslintrc ../../third_party/jsframework/test obj/third_party/jsframework ../../third_party/jsframework/.babelrc false
copy source code...
copy node_modules...
prebuilts exists
(!) 'path/posix' is imported by runtime/main/extend/systemplugin/napi/bundle.js, but could not be resolved – treating it as an external dependency
(!) 'path/posix' is imported by runtime/main/extend/systemplugin/napi/innerBundleManager.js, but could not be resolved – treating it as an external dependency
(!) "resolve" is imported from external module "path/posix" but never used in "runtime/main/extend/systemplugin/napi/bundle.js" and "runtime/main/extend/systemplugin/napi/innerBundleManager.js".
(!) 'path/posix' is imported by runtime/main/extend/systemplugin/napi/bundle.js, but could not be resolved – treating it as an external dependency
(!) 'path/posix' is imported by runtime/main/extend/systemplugin/napi/innerBundleManager.js, but could not be resolved – treating it as an external dependency
(!) Error when using sourcemap for reporting an error: Can't resolve original location of error.
(node:2663023) UnhandledPromiseRejectionWarning: Error: '__spreadArray' is not exported by tslib, imported by runtime/main/model/pageLife.ts
......
Error: Cannot find module 'path/posix'