项目编译报错TypeError: Cannot read properties of undefined (reading 'newFileToResourceList')
项目编译报错TypeError: Cannot read properties of undefined (reading 'newFileToResourceList')
HarmonyOS
赞
收藏 0
回答 1
待解决
相关问题
升级IDE后编译报错:hvigor ERROR: Error: TypeError, Cannot read properties of undefined (reading 'getParameter
2787浏览 • 1回复 待解决
HarmonyOS 调试报错TypeError:Cannot read property xxx of undefined
3786浏览 • 1回复 待解决
加载WebView页面报错"Can not read properties of null (reading 'getltem')"
1729浏览 • 1回复 待解决
HarmonyOS代码报错 cannot read property aboutToRender of undefined
1809浏览 • 1回复 待解决
HarmonyOS Cannot read property setMissionContinueState of undefined
1329浏览 • 1回复 待解决
Cannot read property mediaUris of undefined怎么回事啊?
1762浏览 • 1回复 待解决
升级RN到4.1.0.300版本之后运行报错Error message:Cannot read property isDebugModeEnabled of undefined
2329浏览 • 1回复 待解决
openharmony源码编译报错importerror:cannot import name
10075浏览 • 1回复 已解决
HarmonyOS Cannot set property when setter is undefined
1285浏览 • 1回复 待解决
使用DevEco Studio编译报错Cannot invoke method matches() on null object
11352浏览 • 1回复 待解决
HarmonyOS 编译项目报错:failed to install bundle.
1679浏览 • 1回复 待解决
请教:JS使用RdbPredicates报错TypeError: not a function
5496浏览 • 1回复 待解决
HarmonyOS ffmpeg编译成功,运行到项目报错
2100浏览 • 1回复 待解决
使用fetch报错,fetch undefined
8563浏览 • 2回复 待解决
在ubuntu docker编译时报错:/bin/sh: /root/gn/gn: cannot execute binary file: Exec format error
6233浏览 • 0回复 待解决
HarmonyOS Object is possibly 'undefined'. <ArkTSCheck>报错
1776浏览 • 1回复 待解决
编译运行项目时报错,编辑器一直报错:Failed to get the device apiVersion
3225浏览 • 1回复 待解决
openssl库编译会报undefined symbol: __errno
2411浏览 • 1回复 待解决
编译工程“undefined reference to `pthread_create'”
6822浏览 • 2回复 已解决
HarmonyOS有对应的 jenkins 编译配置插件么?类似gradle.properties
1013浏览 • 1回复 待解决
HarmonyOS源码编译错误 importerror:cannot import name
5957浏览 • 1回复 已解决
hdc命令报错, cannot open shared object file: No such file or directory
3423浏览 • 1回复 待解决
HarmonyOS entry module中引用hsp报错cannot find record...
3839浏览 • 1回复 待解决





















1.hvigor/hvigor-config.json5文件中的logging解开level改成debug,debugging中的stacktrace解开并改成true。从而可以在编译构建报错的时候可以看到具体报错位置,随后排查报错位置是否有问题。
2.如果报错位置在collectResourceInFile,需要点进具体报错信息的文件中,并修改系统文件代码添加一行日志,如下:
3.然后再重新编译即可在build中看到打印出来的报错文件位置,然后查看该文件导入导出的路径是否有报黄预警,从而排查路径问题(常见路径中大小写、文件路径缺失等) 。