我正在Node.js中使用EcmaScript模块。问题是应用程序运行正常,但在调试时不起作用。它将引发以下错误:
/Users/akshaysood/.nvm/versions/node/v9.0.0/bin/node --inspect-brk=55764 --experimental-modules /Users/akshaysood/Blockchain/fabricSDK/bin/www.mjs
Debugger listening on ws://127.0.0.1:55764/fe050bbd-b1ae-4256-912c-d8f04de5bd86
For help see https://nodejs.org/en/docs/inspector
Debugger attached.
(node:37859) ExperimentalWarning: The ESM module loader is experimental.
Error: linking error, dependency promises must be resolved on instantiate
at checkComplete (internal/loader/ModuleJob.js:75:27)
at moduleJob.linked.then (internal/loader/ModuleJob.js:58:11)
at <anonymous>
Waiting for the debugger to disconnect...
我试图用VS Code IntelliJ Idea Webstorm进行调试。
我尝试使用Node.js 9.0和10.8,但没有任何效果。
任何建议/帮助将不胜感激。