Rails 6.0.3
Ubuntu 16.4

I'm doing the second chapter of the Rails tutorial and I'm stumbling on an error.
After starting with rails s, if I specify from the browser, the following error is displayed.

Showing /vagrant/toy_app/app/views/layouts/application.html.erb where line # 9 raised:
Webpacker can't find application in /vagrant/toy_app/public/packs/manifest.json. Possible causes:
1. You want to set webpacker.yml value of compile to true for your environment
   unless i am using the `webpack -w` or the webpack-dev-server.
2. webpack has not yet re-run to reflect updates.
3. You have misconfigured Webpacker's config/webpacker.yml file.
4. Your webpack configuration is not creating a manifest.
Your manifest contains:

I tried various things and there was an article that it was solved by the following command, so I tried it myself, but it did not come to a solution.

rails webpacker: install
rails webpacker: compile