opened 07:31PM - 14 Dec 23 UTC
closed 09:57AM - 22 Dec 23 UTC
### **Describe the bug**
```bash
|- SyntaxError: [vite] Named export 'Ethere… umPrivateKeyProvider' 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)
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:
npm create svelte@latest my-app
install web3auth packages
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",
vjgee
December 15, 2023, 3:28pm
2
@softwarecurator Welcome Aboard!
Could you please check this thread to troubleshoot:
I’m developing a Svelte application using TypeScript and have integrated Web3Auth (version 7.2.0) for authentication with the Solana blockchain. I am encountering an issue during the build process specifically related to importing named exports from the ‘@web3auth /base’ module. The application builds and runs fine on localhost, but I face this problem when building for production.
Here are the details:
SDK Version: @web3auth /base 7.2.0
Platform: Building on macOS
Node.js Version: v20.1…
Also, you can upgrade your packages to the latest version 7.2.0
vjgee
January 5, 2024, 11:00pm
3
@softwarecurator Were you able to check my previous response?
vjgee
January 30, 2024, 9:32am
4
@softwarecurator We have not received any response from your end and will proceed to close this thread.