Error when trying to deploy contract using hardhat #5605
-
Can anyone help with this error? "Error HH8: There's one or more errors in your config file:
This is how I formatted it but it still doesn’t work(check code below), The .env file is in the same folder as the config file Is my config file error free? code for my Config file : require("@nomicfoundation/hardhat-toolbox"); const QUICKNODE_HTTP_URL = process.env.QUICKNODE_HTTP_URL; module.exports = { code for my .env file : QUICKNODE_HTTP_URL="https://distinguished-newest-brook.ethereum-sepolia.discover.quiknode.pro/1fcf0ee98d4fe175e6313c00ee8b09e6e43d470e/" PRIVATE_KEY="xxxxxxxxxxxxxxx" |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I barely see the error message, the image is too blur, do you mind re-upload a new one? |
Beta Was this translation helpful? Give feedback.
-
try to change |
Beta Was this translation helpful? Give feedback.
try to change
require("dotenv").config({ path: ".env" });
to
require("dotenv").config()