Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module not found: Error: Can't resolve '@web3auth/web3auth-wagmi-connector' #114

Open
pbfranceschin opened this issue Jan 16, 2024 · 2 comments

Comments

@pbfranceschin
Copy link

  • issue:
    trying to run the demos and getting this error. tried rainbowkit-modal/, rainbowkit-modal-with-plugin/ and 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

@pbfranceschin
Copy link
Author

note: tried node versions 20.10.0 and 18.16.0. same error.

@geweidong
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants