DEV Community

Discussion on: How to make a fullstack dapp with React, Hardhat and ethers.js with examples

Collapse
 
huudyy profile image
PabloHoudini

That's a really nice post! I was wondering if you ever deployed such app on to some server/ipfs? I am trying to deploy similar app on fleek.co. What I am missing there is the artifacts directory as it is not included in my github repository (hardhat docs say it is a bad idea). So this does not work:

import Election from '../../artifacts/contracts/Election.sol/Election.json';
Enter fullscreen mode Exit fullscreen mode

Any idea how to handle that?

Collapse
 
steadylearner profile image
Steadylearner • Edited

I think I can help you better if you are willing to share a full repository.

I need to know more context of your question.

You can send me a Telegram message if you want and will see I can help you personally.

Edit - There was builtin feature to handle this issue at the website.