Does local assets precompilation cause a problem for server side rendering a component?
I got strange error. My scenario is:
- I have an app locally with react component with prerender: true. In development and production environments it works fine.
- When deploy my app to the server I got an error
ActionView::Template::Error (ERROR in SERVER PRERENDERING
Encountered error: “ReferenceError: ReactOnRails is not defined”
- This problem appeared when I turn compilation assets to local machine. When it compiles on server it works fine