This is a vanilla Rails app that demonstrates ViewComponent breaking rails stats.
Steps to reproduce this error:
rails new error-democd error-demobundle add view_componentrails 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.