Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

truffle-config.js has incorrect format #302

Open
emilyJLin95 opened this issue Feb 7, 2023 · 3 comments
Open

truffle-config.js has incorrect format #302

emilyJLin95 opened this issue Feb 7, 2023 · 3 comments
Assignees

Comments

@emilyJLin95
Copy link

If you follow this tutorial:
https://docs.infura.io/infura/tutorials/ethereum/create-an-nft-using-truffle/create-the-nft-smart-contract

VS Code side bar indicates an incorrect truffle-config.js format

I think this is failing when you have the goerli network defined
The config is fine, but the error should produce somethign more detailed

Screenshot 2023-02-07 at 1 10 26 PM

@emilyJLin95
Copy link
Author

emilyJLin95 commented Feb 28, 2023

I think it's when you have the HDWALLET PROVIDER and dotenv configuration visible then it fails for me (not commented out)

@dhrp
Copy link

dhrp commented Mar 4, 2023

I ran into the same issue; but learned that the issue is not that you have additional configuration in your file, it is that all listed networks actually need to be correct. If one fails to connect, the configuration file shows as incorrect.

@adrianbucks
Copy link

Not sure this helps
image

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

No branches or pull requests

5 participants