Replies: 3 comments 6 replies
-
I had problems with
Delete node_modules again and run the yarn comand as you did. Hope it helps. |
Beta Was this translation helpful? Give feedback.
-
Okay here are a couple working solutions: 1: You can use the web3uikit version specified in Patricks repo
so you can paste
and import it as such
When you download the newest version of web3uikit, it might throw and errror when you start up nextjs, If it does, delete the |
Beta Was this translation helpful? Give feedback.
-
Hi @Vodkasxr , I encountered similar issue you mentioned, my error message like so: fatal: unable to access 'https://github.com/ethereumjs/ethereumjs-abi.git/': Failed to connect to github.com port 443 after 75006 ms: Operation timed out Since connection in my place to Github is bad, I tried using a proxy and setup git global config with below command. git config --global http.proxy <your-proxy-ip>:<your-proxy-port>
# example
git config --global http.proxy 127.0.0.1:1234 After this setting, the following command works: yarn add @web3uikit/core @web3uikit/icons @web3uikit/styles @web3uikit/web3 With the ui kit's packages separated, we may need to figure out where to get the components from by ourselves. // In Patrick's lesson:
import { ConnectButton } from 'web3uikit';
// With latest packages:
import { ConnectButton } from '@web3uikit/web3'; Or you could install the same version in Patrick's repo with above git config to see if it works. Hope this helps :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I encountered a problem here in Lesson 10.Can't resolve 'web3uikit'
ERROR
./components/Header.js:1:0
Module not found: Can't resolve 'web3uikit'
Import trace for requested module:
./pages/index.js
https://nextjs.org/docs/messages/module-not-found
I saw the previous method and deleted the node_ Modules folder, modify package.json file and yarn Lock file, execute the yarn command, the same as the following error.
ERROR
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
Bus error (core dumped)
error Command failed with exit code 135.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
After downloading the repo, I ran the command yarn dev, and an error occurred. I don't know how to solve it.
ERROR
fabric@ubuntu:~/hh-fcc/xii/nextjs-smartcontract-lottery-fcc$ yarn dev
yarn run v1.22.15
$ next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
Bus error (core dumped)
error Command failed with exit code 135.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Beta Was this translation helpful? Give feedback.
All reactions