You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\user\Desktop\check_typescript_export\node_modules@noble\secp256k1\index.js from C:\Users\user\Desktop\check_typescript_export\node_modules\tronweb\dist\TronWeb.node.js not supported.
Instead change the require of index.js in C:\Users\user\Desktop\check_typescript_export\node_modules\tronweb\dist\TronWeb.node.js to a dynamic import() which is available in all CommonJS modules.
Error: Cannot find module '@noble/secp256k1'
Require stack: C:\Users\user\Desktop\check_typescript_export\node_modules\tronweb\dist\TronWeb.node.js
code: 'MODULE_NOT_FOUND'
C:\Users\user\Desktop\check_typescript_export\node_modules\tronweb\dist\TronWeb.node.js:315
undefined
Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\user\Desktop\check_typescript_export\node_modules@noble\secp256k1\index.js from C:\Users\user\Desktop\check_typescript_export\node_modules\tronweb\dist\TronWeb.node.js not supported.
Instead change the require of index.js in C:\Users\user\Desktop\check_typescript_export\node_modules\tronweb\dist\TronWeb.node.js to a dynamic import() which is available in all CommonJS modules.
tsconfig.json
package.json
P.S. if compile code with commonjs ERR_REQUIRE_ESM still presents, node v20 same errors
The text was updated successfully, but these errors were encountered: