Cannot find module '@rails/ujs' - Rails 6 Webpack App
问题 I have these errors in a Rails 6 app and all javascript is not working: ERROR in ./app/javascript/packs/application.js Module not found: Error: Can't resolve '@rails/activestorage' in '/Users/jrsahuquillo/Dropbox/myappname/app/javascript/packs' @ ./app/javascript/packs/application.js 9:0-31 ERROR in ./app/javascript/packs/application.js Module not found: Error: Can't resolve '@rails/ujs' in '/Users/jrsahuquillo/Dropbox/myappname/app/javascript/packs' @ ./app/javascript/packs/application.js 5