Skip to content

evdevdev/view-component-error-demo

Repository files navigation

README

This is a vanilla Rails app that demonstrates ViewComponent breaking rails stats.

Steps to reproduce this error:

  1. rails new error-demo
  2. cd error-demo
  3. bundle add view_component
  4. rails stats

This yields the result:

rails aborted!
TypeError: no implicit conversion of nil into String

Tasks: TOP => stats
(See full trace by running task with --trace)

After some digging, I found the issue stems from this line.

At this point, ViewComponent::Base.view_component_path resolves to nil.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published