Hello morais team, when building the Web3 Dex from your video (https://www.youtube.com/watch?v=t8U7GRrlYW8) im having an error with wagmi module.
import React from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";
import { BrowserRouter } from "react-router-dom";
import { configureChains, mainnet, WagmiConfig, createClient } from "wagmi";
import { publicProvider } from "wagmi/providers/public";
const { provider, webSocketProvider } = configureChains(
[mainnet],
[publicProvider()]
);
const client = createClient({
autoConnect: true,
provider,
webSocketProvider,
});
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
<React.StrictMode>
<WagmiConfig client={client}>
<BrowserRouter>
<App />
</BrowserRouter>
</WagmiConfig>
</React.StrictMode>
);
ERROR in ./src/index.js 10:0-56
Module not found: Error: Package path ./providers/public is not exported from package C:\Users\acala\Desktop\Adamante\dexStarter\dex\node_modules\wagmi (see exports field in C:\Users\acala\Desktop\Adamante\dexStarter\dex\node_modules\wagmi\package.json)
ERROR in ./src/index.js 15:4-19
export ‘configureChains’ (imported as ‘configureChains’) was not found in ‘wagmi’
ERROR in ./src/index.js 15:21-28
export ‘mainnet’ (imported as ‘mainnet’) was not found in ‘wagmi’
ERROR in ./src/index.js 16:15-27
export ‘createClient’ (imported as ‘createClient’) was not found in ‘wagmi’
Could you please help me out solving this error. Thanks.