You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following error occurs after upgrade ruby 3.2.2 -> 3.3.0
$ bundle exec rails server
bundler: failed to load command: rails (/home/solinux/.rbenv/versions/3.3.0/bin/rails)
/home/solinux/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/shakapacker-7.2.1/lib/shakapacker/version_checker.rb:72:in `raise_differing_versions_warning': **ERROR** Shakapacker: Shakapacker gem and node package versions do not match (RuntimeError)
Detected: 7.1.0
gem: 7.2.1
Ensure the installed version of the gem is the same as the version of
your installed node package.
Do not use >= or ~> in your Gemfile for shakapacker without a lockfile.
Do not use ^ or ~ in your package.json for shakapacker without a lockfile.
...
There is no >= or ~> in the Gemfile
...
gem 'shakapacker'
...
Removing the older version of shakapacker won't help
$ gem uninstall shakapacker
Select gem to uninstall:
1. shakapacker-7.1.0
2. shakapacker-7.2.1
3. All versions
> 1
Successfully uninstalled shakapacker-7.1.0
WARN: Unresolved or ambiguous specs during Gem::Specification.reset:
psych (>= 4.0.0)
Available/installed versions of this gem:
- 5.1.2
- 5.1.1.1
WARN: Clearing out unresolved specs. Try 'gem cleanup <gem>'
Please report a bug if this causes problems.
$ gem cleanup shakapacker
Cleaning up installed gems...
WARN: Unresolved or ambiguous specs during Gem::Specification.reset:
psych (>= 4.0.0)
Available/installed versions of this gem:
- 5.1.2
- 5.1.1.1
WARN: Clearing out unresolved specs. Try 'gem cleanup <gem>'
Please report a bug if this causes problems.
Clean up complete
Expected behavior:
To be able to upgrade to ruby 3.3.0
Actual behavior:
Bundler error
Small, reproducible repo:
Setup environment:
Ruby version: 3.3.0
Rails version: 6.1.7.6
Shakapacker version: 7.2.1
The text was updated successfully, but these errors were encountered:
Your issue seems to be related to not updating the Shakapacker version in your package.json. Ensure you have the exact same version of Shakapacker in Gemfile and package.json.
The following error occurs after upgrade ruby 3.2.2 -> 3.3.0
There is no >= or ~> in the Gemfile
Removing the older version of shakapacker won't help
Expected behavior:
To be able to upgrade to ruby 3.3.0
Actual behavior:
Bundler error
Small, reproducible repo:
Setup environment:
The text was updated successfully, but these errors were encountered: