Since Webpacker
is used in Rails apps, you would want not only to add vite
from NPM, but also the ancillary dependencies.
The easiest way to do this is to 1) add the vite_ruby
gem to your Gemfile or gemspec, then run bundle
, then 2) run bundle exec vite install
. /This will take care of adding the other dependencies needed to get started./
Following the above steps will do these things for your app: