Webpacker::Manifest::MissingEntryError
We hope that it will be useful as a solution when such an error occurs.
Mac OS Catarina 10.15.7 rails 6.0 series ruby 2.6.5
1. You want to set webpacker.yml value of compile to true for your environment
unless you are 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:
If you delete the js-reading description
of application.html.erb
, the error disappears, but ** js cannot be read. ** **
An error occurred because the version of node is different.
The goal is to match the node version and make sure the server starts up.
*** 1. Node version check 2. Remove / reinstall to downgrade node 3. Node version check ***
Terminal
% node -v
% brew uninstall --ignore-dependencies nodejs
% brew install node@14
% node -v
*** 4. If the installed node is not reflected, put it in the PATH ***
Terminal
% vim ~/.zshrc
% source ~/.zshrc
vim
export PATH="/usr/local/opt/node@14/bin:$PATH"
*** 5. Install Webpacker ***
Terminal
% rails webpacker:install
*** 6. If you get an error that yarn is required yarn install ***
Terminal
========================================
Your Yarn packages are out of date!
Please run `yarn install --check-files` to update.
========================================
Terminal
% yarn install
*** 7. Try installing Webpacker again ***
Terminal
% rails webpacker:install
*** 8. Start the server and check ***
Terminal
% rails s
--Yarn is required to install Webpacker. --It may happen that it cannot be read due to the difference in version.