@web3auth version 7.0.4 build issues [Resolved]


SyntaxError: Named export 'WebSocket' not found. The requested module 'ws' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'ws';
const { WebSocket: WebSocketNode_ } = pkg;
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)
Emitted 'error' event on Worker instance at:
    at [kOnErrorMessage] (node:internal/worker:300:10)
    at [kOnMessage] (node:internal/worker:311:37)
    at MessagePort.<anonymous> (node:internal/worker:212:57)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:741:20)
    at exports.emitMessage (node:internal/per_context/messageport:23:28)
Node.js v18.17.1

this updates don’t ever check for these types of commonjs issues PLEASE fix 7.0.4 and check for these issues now on

Package                                  Current  Wanted  Latest  Location                                              Depended by
@web3auth/base                             7.0.1   7.0.4   7.0.4  node_modules/@web3auth/base                           app
@web3auth/ethereum-provider                7.0.2   7.0.4   7.0.4  node_modules/@web3auth/ethereum-provider              app
@web3auth/modal                            7.0.3   7.0.4   7.0.4  node_modules/@web3auth/modal                          app
@web3auth/no-modal                         7.0.1   7.0.4   7.0.4  node_modules/@web3auth/no-modal                       app
@web3auth/openlogin-adapter                7.0.1   7.0.4   7.0.4  node_modules/@web3auth/openlogin-adapter              app
@web3auth/torus-wallet-connector-plugin    7.0.1   7.0.4   7.0.4  node_modules/@web3auth/torus-wallet-connector-plugin  app

7.0.1 worked fine 7.0.4 caused the issue above

@josephrios56 Thanks for reporting.

Your feedback has been forwarded to our Dev team.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.