[Error] Can't resolve '@web3-ui/hooks/src/hooks'
See original GitHub issueDescription
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:
- Created a year ago
- Comments:8 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m also having this problem in a Next.js app, with the same versions as @leon0399
Yo! This error just occurred at mine! Was trying to add
ConnectWallet
component@web3-ui/core
0.8.1
@web3-ui/hooks
0.13.0
@web3-ui/components
0.12.0