Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error #9

Open
spatilau opened this issue Mar 19, 2022 · 1 comment
Open

Compile error #9

spatilau opened this issue Mar 19, 2022 · 1 comment

Comments

@spatilau
Copy link

Hi,
I have tried to test your OpenStore. I think I made a mistake somewhere.
I got the following error:
./components/Navbar.js:5:0
Module not found: Can't resolve '../config'
3 | import Web3Modal from "web3modal";
4 | import Web3 from "web3";

5 | import { projAddress } from "../config";
6 | import { useEffect, useState } from "react";
7 |
8 | export default function Navbar()

Is it possible to find my mistake.
Thank You.

Screen Shot 2022-03-19 at 3 06 05 pm

@KingLB44
Copy link

Hello, you must first configure the networks you are going to work with in hardhat.config.js, then compile the contracts and then create a file called config.js in the root where you must place the following lines:
export const nftaddress = "YourNftAddress";
export const nftmarketaddress = "YourNftMarketAddress";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants