reactjs/react-rails

[react-rails] Cannot find component

regita96 opened this issue · 1 comments

i have class extend React.Component in jxs file. I call this class in html.erb file but got error

[react-rails] Cannot find component: 'ClassName' for element div
Uncaught Error: Cannot find component: 'ClassName'. Make sure your component is available to render.
    at Object.mountComponents 
    at HTMLDocument.handleMount 

in html.erb file i called the class like shown bellow:

<%= react_component(
  :ClassName, 
  id: 123
)%>

previously, i can render and find this class. but now i found this problem. please help to solve
Thank you in advance

System Environment
webpack 5.75.0
React-Rails 2.4.0
Rails 5.0.7.2

Either you have typo in your component name or you put your jsx file in a location that is not watched by webpack. Please review your project again.

If the error persist, share link to a repo so that we can reproduce the issue.