Skip to content
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

Error after upgrade to Rails 6.0.0 #1329

Closed
tiagocassio opened this issue Aug 19, 2019 · 6 comments
Closed

Error after upgrade to Rails 6.0.0 #1329

tiagocassio opened this issue Aug 19, 2019 · 6 comments

Comments

@tiagocassio
Copy link

tiagocassio commented Aug 19, 2019

I've update Rails to 6.0.0 final version and after call "rails s", i'm getting this error:

expected file /home/cassio/.rvm/gems/ruby-2.6.3/bundler/gems/devise_token_auth-2c3a8d833040/app/models/devise_token_auth/concerns/tokens_serialization.rb to define constant DeviseTokenAuth::Concerns::TokensSerialization, but didn't (NameError)

gem version: 1.1.1 (branch master)
devise version: 4.6.2 (branch master)
ruby version: 2.6.3

@tiagocassio tiagocassio changed the title Expected file .../.rvm/gems/ruby-2.6.3/bundler/gems/devise_token_auth-2c3a8d833040/app/models/devise_token_auth/concerns/tokens_serialization.rb to define constant DeviseTokenAuth::Concerns::TokensSerialization, but didn't (NameError) Error after upgrade to Rails 6.0.0 Aug 19, 2019
@jenkijo
Copy link

jenkijo commented Aug 19, 2019

I can't install devise-token-auth with Rails 6.0.0

gem 'devise_token_auth', github: 'lynndylanhurley/devise_token_auth'
Bundler could not find compatible versions for gem "railties":
  In snapshot (Gemfile.lock):
    railties (= 6.0.0)

  In Gemfile:
    devise_token_auth was resolved to 1.1.1, which depends on
      devise (> 3.5.2, < 4.7) was resolved to 3.5.10, which depends on
        railties (>= 3.2.6, < 5)

    rails (~> 6.0) was resolved to 6.0.0, which depends on
      railties (= 6.0.0)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

@azamiya
Copy link

azamiya commented Aug 19, 2019

I hit the same problem...
I downgrade devise-token-auth to 1.1.0

@BilalBudhani
Copy link

I'm facing the same issue. I tried downgrading to 1.1.0 as suggested by @tadaniya but bundler throws dependencies mismatch error.

@ponyczek
Copy link

I am getting the same error.

@ikurennyi
Copy link

Hello guys.
That is what I had today:

Bundler could not find compatible versions for gem "rails":
In snapshot (Gemfile.lock):
rails (= 6.0.0)

In Gemfile:
rails (~> 6.0.0)

devise_token_auth was resolved to 0.1.21.alpha2, which depends on
  rails (~> 4.1.4)

Is this gem should work with Rails 6.0.0 now?..

@BilalBudhani
Copy link

I've patched the issue in my personal fork https://github.com/BilalBudhani/devise_token_auth/tree/token-serialization-fix for now. I'll find some time in coming weeks to go through contribution guideline of this repo & raise PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants