CDN try to use process and cased this file error hey-listen.es.js:3:5 #5224
Replies: 1 comment
-
Web3Modal doesn't support CDN, you can however use Vite with AppKit (perv Web3Modal) JS |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello guys , im new here to use web3modal and i have some problem with working CDN's with it.
Our project is just simply want to use web3modal for integrate wallet mobiles with our app, so we can gather thier wallet addresses (ONLY) for sending them rewards etc...
As i said we use CDN, and here is the cdn's i used they working( as i expect):
The error i dealing with it is:
About this file named hey-listen.es.js
The error Uncaught (in promise) ReferenceError: process is not defined is occurring because the process object is not available in the browser environment, @walletconnect/modal, is trying to use the process object, which is causing the error.
I dont know how i get this error but it's lasted lib so i dont know why i can't using this lib
The code that i just want to get result from it , throgh its official example:
<script type="module">import { WalletConnectModal } from 'https://unpkg.com/@walletconnect/modal'; const modal = new WalletConnectModal ({ projectId: '89ff2f66cafc43d6b57b6ac685fbc965', chains: ['eip155:1'], }); </script>The official example doesn't work!
Please update them!
With hope for sloving it..(its been 1 week!)
Beta Was this translation helpful? Give feedback.
All reactions