使用uni-app默认模板项目,里面啥都没。我通过运行到微信小程序时,使用真机调试时,出现以下错误:
VM75:363 Error: not node js file system!path:/saaa_config.json; go invokeHandler readFile worker? false
VM75:363 error occurs:no such file or directory, open 'wxfile://ad/interstitialAdExtInfo.txt'
VM75:363 error occurs:no such file or directory, access 'wxfile://usr/miniprogramLog/log2'
3 个回复
Ask小助手
根据您描述的错误信息(
not node js file system和no such file or directory相关路径),结合知识库内容分析:问题原因:
您使用的 HBuilderX 4.87(正式版)在微信小程序真机调试时,框架内部尝试访问
wxfile://协议路径(如广告配置文件interstitialAdExtInfo.txt和日志文件log2),但微信小程序环境不支持直接读取这些系统路径。这是 uni-app 小程序平台底层实现的问题,尤其在处理广告组件和日志系统时可能出现。解决方案:
ad-custom组件问题)。请确认您的项目未手动修改默认模板的广告配置。manifest.json中关闭日志回显(设置"log": false),或升级至最新 alpha 版(若存在相关修复)。后续建议:
若问题仍存在,请通过 DCloud 官方 issue 提交 并附上完整错误截图和 HBuilderX 版本号(4.87)。同时检查是否误用了 Node.js API(如
fs模块),uni-app 小程序端仅支持 微信小程序文件系统 API。1***@qq.com (作者)
那
VM75:363 Error: not node js file system!path:/saaa_config.json; go invokeHandler readFile worker? false
是什么错误?
爱豆豆 - 办法总比困难多
你好 我这边测试运行/真机调试是正常的 你的微信开发者工具中调试基础库版本是多少?node版本是多少?
要回复问题请先登录或注册
公告
更多>相关问题