Failed to find .env file. Error command env-cmd .env.development gatsby develop

Published: 26 February 2021
on channel: Infinetsoft solutions
7,375
37

Failed to find .env file at default paths: [./.env,./.env.js,./.env.json].
While running the to start the server using the command.

cmd: npm run develop

Finally i found solution
Add -f to the script in package.json file

"env-cmd -f .env.development gatsby develop",

then, i run the command, my graphql IDE plaground is working fine.