Software versions on a macOS 10.14.6 and 10.15:
$ ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18]
$ rails -v
Rails 6.0.0
$ node -v
v6.14.4
$ rails new testshop3
$ cd testshop3
$ rails g scaffold Product name price:integer
$ rails db:migrate
$ rails s
This seems to be a very simple and straight forward setup but when I open http://localhost:3000/products
I get the error message "Webpacker::Manifest::MissingEntryError in Products#index".
How can I fix this?
I found a fix for the problem. But unfortunately I changed too many things at the same time so I have a hard time to pin down what the exact solution is. Here's what I did:
After that it worked. Maybe the last step would have fixed the problem in the first place but I have no way of checking that.