question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Error] Can't resolve '@web3-ui/hooks/src/hooks'

See original GitHub issue

Description

When updating from the old packages that @web3-ui/hooks was not yet included in the core repo:

error - ./node_modules/@web3-ui/core/dist/web3-ui-core.esm.js:7:0
Module not found: Can't resolve '@web3-ui/hooks/src/hooks'

Import trace for requested module:
./src/components/payment/eth/PayWithEther.tsx

Why is this needed?

Missing dep in install command

Proposed Solution or API

Include hooks in deps

Additional Information

This is in a Next.js repo where the client still builds properly, so this has to do with server-side building. Reverting to @web3-ui/core@0.7 fixes this error

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
jleverscommented, May 12, 2022

I’m also having this problem in a Next.js app, with the same versions as @leon0399

2reactions
leon0399commented, May 9, 2022

Yo! This error just occurred at mine! Was trying to add ConnectWallet component

Package Version
@web3-ui/core 0.8.1
@web3-ui/hooks 0.13.0
@web3-ui/components 0.12.0
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Library web3 and Webpack in react and angular
ERROR in ./node_modules/cipher-base/index.js 3:16-43. Module not found: Error: Can't resolve 'stream' in 'C:...\node_modules\cipher-base'.
Read more >
Module not found: Error: Can't resolve 'stream' in React project ...
I believe changing react-scripts to 4.0.3 and rerunning yarn install or npm install would've fixed this issue. There are several ways to get ......
Read more >
How to fix 'Module not found: Can't resolve 'http' in ... - YouTube
Your browser can't play this video. ... How to fix 'Module not found: Can't resolve 'http' in ...' error with FCL + React....
Read more >
Web3 don't work with latest of React · Issue #4659 - GitHub
I have an issue with web3 with latest version of react. It can't be imported in code. The message is: Compiled with problems:X...
Read more >
Module not found: Error: Can't resolve '@web3auth/web3auth'
It's a warning and not an error. The dependency is optional, and should only be installed when you use this authentication method. (it's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found