Skip to content

Zeitwerk::NameError: expected file /opt/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/bundler/gems/solidus_shipstation-20783e6a9dfd/app/models/spree/shipment_decorator.rb to define constant Spree::ShipmentDecorator, but didn't #15

@paulsingh

Description

@paulsingh

Solidus Version:
2.10.2

To Reproduce

  1. With Solidus running on an existing Rails 6 app, add the solidus_shipstation gem along with the configuration details outlined in the README.
  2. While testing locally, all should be fine.
  3. When deploying into production, it will fail. Log output below...

Current behavior
The deploy should be completed successfully. Instead, an Zeitwerk::NameError: expected file /opt/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/bundler/gems/solidus_shipstation-20783e6a9dfd/app/models/spree/shipment_decorator.rb to define constant Spree::ShipmentDecorator, but didn't error is thrown.

Expected behavior
The deploy should be completed successfully.

Desktop (please complete the following information):

  • OS: MacOS Catalina 10.15.6
  • Chrome
  • Version 84.0.4147.105

Additional context
Log output is available here: https://gist.github.com/paulsingh/1ea5c82c94d2f8e1e3b463f488b1e5a3

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