Skip to content

ReferenceError: ReactDOMServer is not defined #470

@bhernez

Description

@bhernez

Hi,

I'm kind of new using this gem, I'm starting a Rails 4.2.5 project and when I declare a component inside a .html.erb view and add the option {prerender: true} it always throws this error:

Encountered error "ReferenceError: ReactDOMServer is not defined" when prerendering COMPONENT_NAME

I'm unsure how related is this issue with this one: #443 but trying the suggested patch stops the error, but I adds another js file in the client (I don't think it is good for performance)

According to this StackOverflow post, I'm not the only one with this issue http://stackoverflow.com/questions/35200728/react-rails-component-with-prerender-true-issue

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions