Closed PratyushNag closed 2 years ago
Could you try removing the keyword export? and see if that helps.
As an update on this issue, the red lines still shows, and VScode still thinks its an error, though if I just go ahead and run my program as is, it now has no troubles executing whatsoever. (Previously it was it not running and gave a certain error saying it cannot parse the line 1 and line 2 of the .env file. After Reloading VScode, and properly checking my imports, it continues to show red lines but the program works and gives the outputs I need)
Though I have tried removing the word export and it still gives the same error as "Cannot find
Hum something may be messing up with your vscode, may bien an extension or a configuration... could you share your setting.json @PratyushNag ?
After moving along in the course, I'm now at the brownie fund me lesson, here we again have to create a new .env file and repeat the steps we did in the previous lesson to connect to rinkeby. Though in the previous project, with what miracle the code worked I have no idea, but I have run into this error again and I'm getting the same error as last time, "unable to expand env variable"
I finally got it to work, turns out this errors happens if the brownie-config file is not saved, if you make changes to the .env file make sure you save the .env file as well as the config file. Even if you haven't changed anything in the config file, saving it again solves this error for me. Hope this helps others struggling with the same error
Hum something may be messing up with your vscode, may bien an extension or a configuration... could you share your setting.json @PratyushNag ?
Oh...this problem kept messing me for 2 days until i rename the .env to x.env then changed it back to .env, when i saved all red lines disappeared. done! so amazing....!
Discussed in https://github.com/smartcontractkit/full-blockchain-solidity-course-py/discussions/1397