talyssonoc / react-laravel

Package for using ReactJS with Laravel
896 stars 90 forks source link

V8Js::executeString():1: TypeError: Cannot call method 'renderToString' of undefined #59

Closed kishanj918 closed 8 years ago

kishanj918 commented 8 years ago

I am getting this error while using this package..

TomCaserta commented 8 years ago

This is because React now has ReactDOMServer. The React.renderToString method no longer exists. The react vendor files distributed with this package needs to be updated.

To get around this for now, download react.js and react-dom.js and react-dom-server.js, concatenate them together and in the config/react.php change the "source" to point to concatenated file.

See #49