I create the project from hardhat but when I run the command npx hardhat compile I get the message nothing to compile, I have never had this error before, and my contract is not compiling. Anyone who has encountered this error please guide me how to fix it, thanks\

May 15, 2022, 10:02 AM
For whatever reason, hardhat believes there have been no changes. In order to force a recompile, you might try npx hardhat clean or npx hardhat compile --force
May 15, 2022, 10:05 AM
I create the project from hardhat but when I run the command npx hardhat compile I get the message nothing to compile, I have never had this error before, and my contract is not compiling. Anyone who has encountered this error please guide me how to fix it, thanks\
May 15, 2022, 10:20 AM
Do you have correct path way ?
May 15, 2022, 10:20 AM
what path ? bro ?
May 15, 2022, 10:20 AM
I mean path/folder your project
May 15, 2022, 10:21 AM
mkdir hardhat-tutorial
cd hardhat-tutorial
npm init --yes
npm install --save-dev hardhat
npx hardhat
I ran these commands
this is docs: https://hardhat.org/tutorial/creating-a-new-hardhat-project.html
May 15, 2022, 10:22 AM
Could you do screen of your IDE ?
May 15, 2022, 10:22 AM
I still run like that before
May 15, 2022, 10:25 AM
ok then terminal and hardhat.config.js
May 15, 2022, 10:25 AM
May 15, 2022, 10:29 AM
You can open terminal in VS code (command: CTRL + J)
I can't see path to your proj
Try run npx hardhat
May 15, 2022, 10:31 AM
May 15, 2022, 10:33 AM
lol (
May 15, 2022, 10:34 AM
can you help me ?
May 15, 2022, 10:37 AM
Try:
1. npx hardaht clean -> compile
2. git issue
May 15, 2022, 10:38 AM
Still not working but i know maybe it's windows problem or maybe i'm using nodejs 16 version which has some incompatible packageag. I ran linux with WSL and it compiles fine
May 15, 2022, 10:43 AM
It's bad joke 🤣 from hardhat team
May 15, 2022, 10:45 AM
Today I use a laptop at home, so I have to use windows on my company using linux
May 15, 2022, 10:46 AM
I am developing on win_10 and it's work fine
May 15, 2022, 10:46 AM
thanks for your help. Do you have any projects I am involved with. I know about reactjs, nextjs, solidity
Do you have any projects I am involved with. I know about reactjs, nextjs, solidity
May 15, 2022, 10:47 AM
Maybe need to set up config file
May 15, 2022, 10:47 AM
What version of nodejs are you using?
May 15, 2022, 10:53 AM
16+
It isn't depend on node version
Go to DM to not spamming here
May 15, 2022, 10:56 AM

© 2024 Draquery.com All rights reserved.