lookbook-hq / lookbook

A UI development environment for Ruby on Rails apps ✨

Home Page:https://lookbook.build

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The action ‘render_scenario_to_string’ could not be found for ViewComponentsController

NYDrewReynolds opened this issue · comments

Versions
Rails: '6.1.4.4'
Lookbook: '2.0.0.rc.2'
ViewComponent: '~> 3.0.0.rc2'

Description
After upgrading to '2.0.0.rc.2' began seeing this bug when in our production environment. It is the same across browsers. It is the same error across all components, previews, and scenarios.

The error message: The action ‘render_scenario_to_string’ could not be found for ViewComponentsController Did you mean? followed by some internal path suggestions.

The reference to ViewComponentsController indicates this might be tied to us also using a release candidate version for view_component gem.

Hey @NYDrewReynolds - sorry about this, this issue is actually be fixed already on the v2 branch but I just haven't published a new release yet, been a busy week. I'll merge your PR and then try to get one out later today!

@NYDrewReynolds this is now fixed in the 2.0.0.rc.3 release so I'm going to close this now. Any problems still just let me know!