-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation problem for edge: Zeitwerk::NameError: wrong constant name Refinerycms-authentication-devise inferred by Module from file #3479
Comments
I'm getting the same error with the same versions of Rails and Ruby. Same issue when I try installing the edge version. |
@jenxi n @timreganporter It had happened to me. As I needed a rails 6, I changed to confortable mexican sofa. |
Same error (ruby 2.6.5, rails 6.0.3.4). I got around it by adding this to the new application's config/application.rb:
Just like in this template file. Then I navigated to the new app and run manually the commands inferred from www.refinerycms.com/t/edge:
That complained about a syntax error in Gemfile, but it was easy to fix, and then I run the generate command again. |
Thanks for this @jussihirvi, I'm new to Refinery (literally just checking it out now) and i could not figure out why I was getting the Zeitwerk error. Your solution worked for me. Edit: I'm using Rails 6.0.3.4 and Ruby 2.7.1 |
Bumper21, probably the setting will cause no problems because it is already used in a template file in the master branch. However, a bug fix is on it's way, to allow the zeitwerk autoloader, as bricesanchez told here. |
You can follow along at #3465 |
I'm doing a fresh install, using Rails 6.0.3.2 and Ruby 2.7.1.
Using: rails new rickrockstar -m https://www.refinerycms.com/t/edge
Bundle install seems to work but then the installation croaks on db:create with:
Zeitwerk::NameError: wrong constant name Refinerycms-authentication-devise inferred by Module from file
The relevant line in the Gemfile is:
gem 'refinerycms-authentication-devise', git: 'https://github.com/refinery/refinerycms-authentication-dev
I tried changing the Gemfile entry to:
gem 'refinerycms-authentication-devise', '~> 2.0.0'
and got this (which is similar to the error I get when installing from the 4.0 templates:
The text was updated successfully, but these errors were encountered: