turinglabsorg / universal-mint-button

Sign in with Ethereum button allows web² website to use web³ functionalities with a simple and intuitive Javascript module.
3 stars 3 forks source link

Doesn't work #1

Open luigi25 opened 2 years ago

luigi25 commented 2 years ago

I insert all contract data (es ABI, address, ecc) in index.js and i import this file in index.html instead of umb.min.js (i tried also with this one recreating it from webpack but doesn't work). I want to use the index.js to debug the code and see if there are some problems in it, but the fact is that the import from node_modules of Web3, Web3Modal, { isMobile }, WalletConnectProvider in this javascript causes me this error: "Uncaught TypeError: Failed to resolve module specifier "web3". Relative references must start with either "/", "./", or "../"." I don't know how to fix, i try in a lot of ways. Let me know, thanks

turinglabsorg commented 2 years ago

@luigi25 you can't include in an index.html an uncompiled code, you need to compile it first..