You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Rails 5 with react-rails gem. I want to use server-side rendering, but I see this error:
React::ServerRendering::PrerenderError in Home#index
Encountered error "# ExecJS::ProgramError: TypeError: Cannot read property 'serverRender' of undefined" when prerendering Main with {}
This is javascripts/components.jsx:
class Main extends React.Component{ render(){ return ( <h1>Hello</h1> ); } }
and this is the view: <%= react_component('Main', {}, {prerender: true}) %>
Without prerender option, everything works.
The text was updated successfully, but these errors were encountered:
I am using Rails 5 with react-rails gem. I want to use server-side rendering, but I see this error:
This is javascripts/components.jsx:
class Main extends React.Component{ render(){ return ( <h1>Hello</h1> ); } }
and this is the view:
<%= react_component('Main', {}, {prerender: true}) %>
Without prerender option, everything works.
The text was updated successfully, but these errors were encountered: