In my case, i had all my variables stored in .env.local file, i renamed .env.local to .env and it worked.