Open gnappo1 opened 4 years ago
Thank you this helped me out
It helped me as well!
Thank youuuu!!!
FINALLY, ran into this issue so many times, this solved it.
Yes!! the last bit is what worked for me.
Sirvio de mucho, thanks Sir.
can't display hello world... spent whole day to solve this problem and nothing works Webpacker::Manifest::MissingEntryError in Articles#index https://guides.rubyonrails.org/getting_started.html moving this guide step by step
большое спасибо, все работает
Starting with Rails 6, Webpacker is the default JavaScript compiler. It means that all the JavaScript code will be handled by Webpacker instead of the old assets pipeline (Sprockets). If you see the following error when running
rails s
:Try their suggestion:
Please run: rails webpacker:install
. If that command raises the error:Install Yarn using the link suggested:
https://yarnpkg.com/lang/en/docs/install/
.Issues with Yarn: Sometimes students have a yarn gem that seems to interfere with the javascript package.
which yarn
will tell you where yarn is. If it's showing up in some ruby gems folder, uninstall the yarn gem:gem uninstall yarn
andY
if it asks to also remove the executable. Then install the javascript package of yarn globally:npm install -g yarn
Note that Node should also be installed, you can quickly check if it is by typing
node -v
in your terminal of preference. In general, I recommend installingnvm
Node Version Manager, so that you'll be able to install multiple versions of Node and switch between them easily. Likervm
for Ruby!Installation code for NVM:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
Installation code for Node using NVM:nvm install node
Now that all the missing pieces are installed, let's try to run again
rails webpacker:install
.If you still run into issues, try the following steps:
Install webpacker using npm by running this command:
npm i @rails/webpacker
Run
bundle install
Note: You may need to eliminate the version designation. If so, do the following:gem webpacker
Manually add a file called
webpacker.yml
to theconfig
directory (final path: ./config/webpacker.yml).Add this text to the
webpacker.yml
file:If you do still have issues, wow good job for trying all of this first of all!!! But also, what a day ha?! Ask a question on AAQ and one of us coaches will try their best to find another solution that works for you!
Also, big shout out to @Ashley and @kenlyn for compiling these steps for all of us!