Check that you only have one .env file. I had a .env.profuction file nearby, when I deleted it, the error disappeared