这个报错意味着你正在使用一个 ES 模块文件,但是尝试使用 require() 来加载它。这是不支持的,因为 require() 只能用于加载普通的 CommonJS 模块。报错信息中给出了几个解决方案,包括将文件扩展名改为 .cjs、改为使用 import(),或者从 package.json 中删除 "type": "module"。

autojs internalmodulescjsloaderjs1149 Error ERR_REQUIRE_ESM Must use import to load ES Module storageemulated0脚本node_modulesaxiosindexjsrequire of ES modules is not supportedrequire of storageemulate

原文地址: https://www.cveoy.top/t/topic/flLN 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录