Giter VIP home page Giter VIP logo

Comments (3)

TigerWolf avatar TigerWolf commented on September 27, 2024

I can confirm that I have this issue too. In my specs I get this error:

Failure/Error: require File.expand_path("../config/environment", __dir__)

NameError:
  uninitialized constant ActionView::AbstractRenderer
# ./config/application.rb:9:in `<main>'
# ./config/environment.rb:3:in `<main>'
# ./spec/rails_helper.rb:6:in `<main>'
# ./spec/services/sso_spec.rb:3:in `<main>'
# ------------------
# --- Caused by: ---
# LoadError:
#   cannot load such file -- action_view/renderer/collection_renderer
#   ./config/application.rb:9:in `<main>'

from jbuilder.

jrochkind avatar jrochkind commented on September 27, 2024

I don't believe it's related to nginx/passenger, I'm getting it without.

I thought it was related to Rails 7, I started getting it when I tried running my tests under Rails 7. But you report Rails 6.1.

But the ActionView::AbstractRenderer still exists even in Rails 7...

Aha, I bet it's a zeitwerk loading issue. I bet those having the problem are using zeitwerk; which was optional before Rails 7, but mandatory in Rails 7.

The class is ActionView::AbstractRenderer, but it's located at path action_view/renderer/abstract_renderer.rb -- the extra /renderer in there may be making zeitwerk fail to load it where it did before.

I would like to try to file a ticket in Rails, but I can't figure out how to make a simple reproduction. :( I

am pretty sure this is zeitwerk related though.

from jbuilder.

rafaelfranca avatar rafaelfranca commented on September 27, 2024

Zeitwerk doesn't load the framework code, so this has nothing to do with Zeitwerk. The issue was caused by d84c37d. I'm fixing.

from jbuilder.

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.