WalletConnect / web3modal

A single Web3 provider solution for all Wallets

Home Page:https://web3modal.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

web3modal/wallet usses process client side [bug]

pociej opened this issue · comments

Link to minimal reproducible example

no need

Summary

After update to version 4.1.11

Uncaught ReferenceError: process is not defined
at W3mFrameConstants.ts:2:3

because of https://github.com/WalletConnect/web3modal/blob/V4/packages/wallet/src/W3mFrameConstants.ts#L2

List of related npm package versions

@web3modal/wallet : "4.1.11"

Bump

Is there a version that doesn't have this problem? It's blocking me from using my local dev environment 😢

Link to minimal reproducible example

no need

Summary

After update to version 4.1.11

Uncaught ReferenceError: process is not defined at W3mFrameConstants.ts:2:3

because of https://github.com/WalletConnect/web3modal/blob/V4/packages/wallet/src/W3mFrameConstants.ts#L2

List of related npm package versions

@web3modal/wallet : "4.1.11"

I was able to solve this in svelte Kit by updating my vite.config.ts

export default defineConfig({
	plugins: [sveltekit()],
	// Define process.env here
	 define: {
    'process.env': {}
  }
});

Fixed on latest