Open pbfranceschin opened 8 months ago
issue: trying to run the demos and getting this error. tried rainbowkit-modal/, rainbowkit-modal-with-plugin/ and wagmi-modal/
rainbowkit-modal/
rainbowkit-modal-with-plugin/
wagmi-modal/
error:
ERROR in src/Web3AuthConnectorInstance.tsx:2:35 TS2307: Cannot find module '@web3auth/web3auth-wagmi-connector' or its corresponding type declarations. 1 | // Web3Auth Libraries > 2 | import { Web3AuthConnector } from "@web3auth/web3auth-wagmi-connector"; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 | import { Web3Auth } from "@web3auth/modal"; 4 | import { EthereumPrivateKeyProvider } from "@web3auth/ethereum-provider"; 5 | import { OpenloginAdapter } from "@web3auth/openlogin-adapter"
steps to reproduce:
git clone https://github.com/Web3Auth/web3auth-wagmi-connector.git cd web3auth-wagmi-connector npm i cd demos/rainbowkit-modal npm i npm run start
git clone https://github.com/Web3Auth/web3auth-wagmi-connector.git
cd web3auth-wagmi-connector
npm i
cd demos/rainbowkit-modal
npm run start
note: tried node versions 20.10.0 and 18.16.0. same error.
You should build the module in root , npm run build, then the dist file would be generated, and the demo can import from the dist file.
npm run build
dist
issue: trying to run the demos and getting this error. tried
rainbowkit-modal/
,rainbowkit-modal-with-plugin/
andwagmi-modal/
error:
steps to reproduce: