Giter VIP home page Giter VIP logo

Comments (8)

tagliala avatar tagliala commented on July 18, 2024 1

@navidemad replicated thanks, working on a fix.

It is related to the new initializer generator and to

config.eager_load_namespaces << RouteTranslator

from route_translator.

tagliala avatar tagliala commented on July 18, 2024 1

14.0.1 released, sorry for the small inconvenience

from route_translator.

tagliala avatar tagliala commented on July 18, 2024

Hi!

Thanks for being part of the Route Translator Community.

Debugging Route Translator issues is a time consuming task, please use a web browser to fill out our Bug Report template and provide as many information as you can.

For this specific report, it would be much better to include a reproducible test case.

from route_translator.

navidemad avatar navidemad commented on July 18, 2024

@tagliala

Hello, firstly thanks for your gem it helps us a lot.

I got the same issue, we downgraded to < 14 for the moment.
I tried to make a reproducible case, but i didn't isolate the issue but it appears only in my CI, not when i'm running the test locally on my computer.

Run bin/rspec spec'

An error occurred while loading ./spec/components/back_link_component_spec.rb.
Failure/Error: require_relative "../config/environment"

NoMethodError:
  undefined method `eager_load!' for RouteTranslator:Module
./vendor/bundle/ruby/3.2.0/gems/railties-7.0.7.2/lib/rails/application/finisher.rb:75:in `each'
./vendor/bundle/ruby/3.2.0/gems/railties-7.0.7.2/lib/rails/application/finisher.rb:75:in `block in <module:Finisher>'
./vendor/bundle/ruby/3.2.0/gems/railties-7.0.7.2/lib/rails/initializable.rb:32:in `instance_exec'
./vendor/bundle/ruby/3.2.0/gems/railties-7.0.7.2/lib/rails/initializable.rb:32:in `run'
./vendor/bundle/ruby/3.2.0/gems/railties-7.0.7.2/lib/rails/initializable.rb:61:in `block in run_initializers'
./vendor/bundle/ruby/3.2.0/gems/railties-7.0.7.2/lib/rails/initializable.rb:60:in `run_initializers'
./vendor/bundle/ruby/3.2.0/gems/railties-7.0.7.2/lib/rails/application.rb:372:in `initialize!'
./config/environment.rb:7:in `<top (required)>'
./spec/rails_helper.rb:5:in `require_relative'
./spec/rails_helper.rb:5:in `<top (required)>'
./spec/models/user_spec.rb:3:in `<top (required)>'

I do not have any matches for eager_load! in my project and neither in the gem when i opened it through bundle open route_translator

from route_translator.

tagliala avatar tagliala commented on July 18, 2024

I got the same issue, we downgraded to < 14 for the moment.

Does it work with < 14?

Ok. If it works on localhost but does not work on CI, there could be some issues with the bundled gems there

from route_translator.

tagliala avatar tagliala commented on July 18, 2024

I think I got the issue

from route_translator.

navidemad avatar navidemad commented on July 18, 2024

I got the same issue, we downgraded to < 14 for the moment.

Does it work with < 14?

Ok. If it works on localhost but does not work on CI, there could be some issues with the bundled gems there

Awesome, thanks for your quick reply.
Yes i confirm you, it happened only after we upgraded with your latest update.

from route_translator.

navidemad avatar navidemad commented on July 18, 2024

Thanks for the patch, i tried the main branch version, and it's works perfectly 💯

from route_translator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.