Replies: 1 comment 4 replies
-
btw, run the orign pkg 5.8.1,there are no error. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Everything is in the title. my node version is 20.12.0 and pkg 20.11.1. I really don't understand.
Error [ERR_REQUIRE_ESM]: require() of ES Module C:\snapshot\Prosec\backend\node_modules\ltx\lib\parsers\ltx.js from C:\snapshot\Prosec\backend\node_modules\node-opcua-xml2json\dist\source\xml2json.js not supported. ltx.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Beta Was this translation helpful? Give feedback.
All reactions