Solidity Compiler Settings Missing from preferences #115
-
Hi, Solidity compiler v0.8.14 is installed correctly on Ubuntu
but SimpleStorage.sol reversed and now returns an error stating that it is in v0.4.
All Solidity Compiler settings have disappeared from preferences and editing in settings.json returns
And when I try to run node deploy.js I get this error:
Mind you that compiler was working fine until we introduced Ganache UI to the mix. Doe anyone know where I went wrong, plz? Or should I just restart the lesson from scratch? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi Dorian! Have you try looking at the file "hardhat.config.js"? above must say: module.exports = { solidity: "0.8.8", Please let me know if that works fine and solve the issue. |
Beta Was this translation helpful? Give feedback.
-
@javierdash Hi Javier, thank you for the tip. Unfortunately I don't have hardhat.config file for some reason. Not sure what's going on. Should I install hardhat from the command line instead of relying on the solidity+hardhat extension? |
Beta Was this translation helpful? Give feedback.
-
@javierdash I have removed and reinstalled solc for specific version
error has disappeared but still no hardhat.config I do have the "yarn.lock" and "Node_modules" What i find strange is that I did run the install commands for hardhat succesfully but hardhat.config never popped up. I don't know why |
Beta Was this translation helpful? Give feedback.
@javierdash Hi Javier, thank you for the tip. Unfortunately I don't have hardhat.config file for some reason. Not sure what's going on. Should I install hardhat from the command line instead of relying on the solidity+hardhat extension?