vscode-ext icon indicating copy to clipboard operation
vscode-ext copied to clipboard

truffle-config.js has incorrect format

Open emilyJLin95 opened this issue 2 years ago • 3 comments

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 avatar Feb 07 '23 18:02 emilyJLin95

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

emilyJLin95 avatar Feb 28 '23 20:02 emilyJLin95

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.

dhrp avatar Mar 04 '23 15:03 dhrp

Not sure this helps image

adrianbucks avatar May 08 '23 11:05 adrianbucks