Closed brandondrew closed 1 year ago
I tried specifying the vite_ruby
gem to be 3.1.2, and later the vite_rails
gem to be 3.1.2, hoping that might correspond to vite-plugin-ruby@3.1.2
, but it didn't help.
The same thing happens immediately with this
rails new my-awesome-site \
-m https://raw.githubusercontent.com/maglevhq/maglev-core/master/template.rb \
--database=postgresql \
--skip-action-cable
Or simply
rails new my-awesome-site \
-m https://raw.githubusercontent.com/maglevhq/maglev-core/master/template.rb
getting this same error trying to do a new install with this:
rails new my-awesome-site \ -m https://raw.githubusercontent.com/maglevhq/maglev-core/master/template.rb \ --database=postgresql \ --skip-action-cable
I can get the rails server to run with VITE_RUBY_SKIP_COMPATIBILITY_CHECK=true
but that seems to introduce a bunch of other problems.
Get the same using both the Short and Long commands listed in the instructions.
@did Do you have any insight into the problem we're having?
hey all π I'll take a look at it this evening.
π @brandondrew.
I did 2 things:
assets:precompile
rake task)template.rb
so that it installs the latest versions of both Maglev and Puma.I haven't had the time to re-play the Avo guide. I'll do it later today.
I no longer have the vite error, but a new one appears when I go to http://localhost:3000/maglev/admin/theme. http://localhost:3000 works without problems
@did It is working for me now. Thank you for looking into this, it looks great!
@work-leonid I didn't have an issue going to http://localhost:3000/maglev/admin/theme
I'm closing this one. Don't hesitate to re-open it if the exact same issue arises again. Thanks!
Following the directions at https://docs.maglev.dev/integrations/avo, I ran into a an error when I got to
bin/rails g maglev:install
Running
bundle exec vite upgrade
did not solve anything. Even using the environment variable suggested on the Rails Vite page didn't resolve anything:bin/vite upgrade
(also suggested by Vite-Ruby's documentation) didn't do anything becausevite
doesn't exist inbin
. The error remained, and appeared any time I tried to run a command:I've never used Vite before, so I have no insight into what may be going wrong, and I'm not able to find any clues by Googling.