Skip to content

GlobalID errors #126

@Matt-Yorkley

Description

@Matt-Yorkley

Bug Report

Describe the bug

Trying out Futurism on a fresh app I'm getting fatal errors that seem to be a class-loading issue with GlobalID.

To Reproduce

  • Create a fresh app with Rails 7.0.1 and Ruby 3.0.3
  • Add Futurism
  • Try futurizing a partial
NameError - uninitialized constant Futurism::Resolver::Resources::GlobalID

The backtrace points to:

[...]/3.0.0/gems/futurism-1.2.0.pre9/lib/futurism/resolver/resources.rb:92:in `resolved_models' 

I notice in my Gemfile.lock I have globalid at version 1.0.0, which was added by default. If I downgrade and manually pin it to <= 0.6.0 instead, the issue is resolved.

Versions

Futurism

  • Gem: 1.2.0.pre9
  • Node package: 1.2.0-pre9

External tools

  • Ruby: 3.0.3
  • Rails: 7.0.1
  • CableReady: 5.0.0-pre8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions