CommonJS module syntax Error on @web3auth/base openlogin-adapter, ethereum-provider etc #1662

Describe the bug

|- SyntaxError: [vite] Named export 'EthereumPrivateKeyProvider' not found. The requested module '@web3auth/ethereum-provider' 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 '@web3auth/ethereum-provider';
const {EthereumPrivateKeyProvider} = pkg;

To Reproduce

Steps to reproduce the behavior:

  1. npm create svelte@latest my-app
  2. install web3auth packages
  3. import packages

Expected behavior

being able to run the app

Screenshots

Device Info (please complete the following information):

  • Device: Mac Mni
  • OS: Mac OS
  • Browser Chrome
  • Version 120.0.6099.71
  • Web3Auth Version ^7.0.1 (latest)
		"@web3auth/base": "^7.0.1",
		"@web3auth/ethereum-provider": "^7.0.1",
		"@web3auth/modal": "^7.0.1",
		"@web3auth/no-modal": "^7.0.1",
		"@web3auth/openlogin-adapter": "^7.0.1",
		"@web3auth/torus-wallet-connector-plugin": "^7.0.1",
		"@web3auth/web3auth-wagmi-connector": "^5.0.0",

@softwarecurator Welcome Aboard!

Could you please check this thread to troubleshoot:

Also, you can upgrade your packages to the latest version 7.2.0

@softwarecurator Were you able to check my previous response?

@softwarecurator We have not received any response from your end and will proceed to close this thread.