vscode-ext
vscode-ext copied to clipboard
truffle-config.js has incorrect format
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

I think it's when you have the HDWALLET PROVIDER and dotenv configuration visible then it fails for me (not commented out)
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.
Not sure this helps