If you are facing ruby on rails crash issue in your Rails 6 app, you can try following these steps to resolve it:
$ bundle install
Restart your Rails server to ensure the changes take effect.
Or You could use separate compiler for JS and CSS
Try using `yui` for css compile and `uglifier` for js compile
1. Add the following gems in your Gemfile to Compile javascripts and css in production
> gem 'uglifier' > gem 'yui-compressor'
2. And change the configuration to use the above gems to compile JS and CSS
> config.assets.css_compressor = :yui > config.assets.js_compressor = Uglifier.new(harmony: true)