-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Description
我使用node去启动ygopro-server时,错误如下:
`/root/ygo2/ygopro-server/ygopro-server.js:77
loadJSON = require('load-json-file').sync;
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /root/ygo2/ygopro-server/node_modules/_load-json-file@7.0.1@load-json-file/index.js from /root/ygo2/ygopro-server/ygopro-server.js not supported.
Instead change the require of index.js in /root/ygo2/ygopro-server/ygopro-server.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/root/ygo2/ygopro-server/ygopro-server.js:77:14)
at Object.<anonymous> (/root/ygo2/ygopro-server/ygopro-server.js:5277:4) {
code: 'ERR_REQUIRE_ESM'
}`
根据查询是试用了load-json-file使用了es6语法而项目不支持,不知道如何解决
Metadata
Metadata
Assignees
Labels
No labels