I just created a new Rails 6 app. Everything went fine until I tried to launch the local server with rails s
, and got this error message :
RAILS_ENV=development environment is not defined in config/webpacker.yml, falling back to production environment
Exiting
and
Webpacker configuration file not found /Users/remy/dev/voter/config/webpacker.yml. Please run rails webpacker:install Error: No such file or directory @ rb_sysopen - /Users/remy/dev/voter/config/webpacker.yml (RuntimeError)
But when I run rails webpacker:install
I still have the error.
That error usually hints at an unmet Yarn dependency. Try installing or updating Yarn before running rails webpacker:install
.
Here are the Yarn Docs for quick reference just in case.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With