Module not found: Can't resolve 'web3uikit' #1169
-
Hi, after running yarn add web3uikit in my command Module not found: Can't resolve 'web3uikit'
i dont find any reason why i am. getting this error import { ConnectButton } from "web3uikit";
export default function Header() {
return (
<nav className="p-5 border-b-2 flex flex-row">
<h1 className="py-4 px-4 font-bold text-3xl"> Decentralized Lottery</h1>
<div className="ml-auto py-2 px-4">
<ConnectButton moralisAuth={false} />
</div>
</nav>
);
} and here is my _app.js import { MoralisProvider } from "react-moralis";
import { NotificationProvider } from "web3uikit";
import "../styles/globals.css";
function MyApp({ Component, pageProps }) {
return (
<MoralisProvider initializeOnMount={false}>
<NotificationProvider>
<Component {...pageProps} />
</NotificationProvider>
</MoralisProvider>
);
}
export default MyApp;
//done hay |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 31 replies
-
@chrismogab show your package.json, and try to remove node_modules folder and retry installing packages |
Beta Was this translation helpful? Give feedback.
-
same issue here , i've tried removing node modules |
Beta Was this translation helpful? Give feedback.
-
In your package.json, change the web3uikit version by copying this there: "web3uikit": "^0.1.163" Now, uninstall node_modules |
Beta Was this translation helpful? Give feedback.
-
yes, this is all i have uptill now when i am getting the error. |
Beta Was this translation helpful? Give feedback.
-
I am facing the same error. None of the above suggestions fixes the issue. |
Beta Was this translation helpful? Give feedback.
-
Refer this :- |
Beta Was this translation helpful? Give feedback.
-
I ran into this problem, too. I tried the above version 1.0.170, but it still didn’t work. |
Beta Was this translation helpful? Give feedback.
-
You need to manually change dependencies in your package.json like below
and then reinstall webkit, then it works. |
Beta Was this translation helpful? Give feedback.
@chrismogab show your package.json, and try to remove node_modules folder and retry installing packages
yarn install