Open ChariseWalraven opened 5 years ago
Unable to reproduce with the exact same setup, but i'm able to reproduce some errors if I rename my .env
file to something else like .envtest
.
Make sure your .env
file is named properly and that it sits at the top level of your site
Hi @huguestennier! Thanks for the suggestion, however it is in the root and it is named .env
I've received the same error in the last few days also, though in slightly different circumstances. I have both.env.production
and .env.development
in the project root, hitting yarn start
throws the invalid error. It all works perfectly fine if I remove the ".development" or ".production".
I've receiving this same error @ChariseWalraven . Any solutions since your original post? I've searched everywhere but no luck.
If you have a .env file that is specific to development or production you have to specify that in your command. So instead of just doing yarn start
do yarn start --env=development
or whatever yours is
I am encountering the exact same issue, tried :
.env
file, ran yarn start
.env.development
, ran yarn start --env=development
Same formatting in my .env file than OP and can't find any solution to this so far
Somehow managed to get rid of this issue by rebooting. I tried those manipulation after having installed mkcert to work with Slate "locally", and I guess something went wrong at some point, so if someone encounters a similar issue, give your computer a reboot, might fix the issue ( strangely )
Problem
Yarn start is throwing an error
Replication steps
yarn create slate-theme my-new-theme
cd my-new-theme
yarn && yarn start
More Information
This is what my .env file looks like:
This is the error message: