FormidableLabs / rapscallion

Asynchronous React VirtualDOM renderer for SSR.
MIT License
1.39k stars 50 forks source link

Warning: render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup. #118

Closed arnayak4u closed 6 years ago

arnayak4u commented 7 years ago

After switching to Rapscallion template toStream() , I am getting following Error/Warning on the browser:

Warning: render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup.

My React SSR code looks somewhat like below :

app.get('*', function (request, response) {
               const responseRenderer = template`
                <!doctype html>.....

                    <div id="appRoot">
                    ${componentRenderer}
                    </div>

Githubissues.

  • Githubissues is a development platform for aggregating issues.