Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'render' of undefined #12

Open
johanneslumpe opened this issue Dec 15, 2016 · 4 comments
Open

Cannot read property 'render' of undefined #12

johanneslumpe opened this issue Dec 15, 2016 · 4 comments

Comments

@johanneslumpe
Copy link

After swapping up the stock renderer for fast-react-render, the following error popped up when trying to render the page:

(node:11472) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'render' of undefined

Should this library just work when swapping out the renderer or are there non-documented edge cases where it breaks?

@alt-j
Copy link
Owner

alt-j commented Dec 16, 2016

fast-react-render doesn't have render method, it has only one method elementToString.
It is an analogue of ReactDomServer.renderToStaticMarkup.

@alt-j alt-j closed this as completed Dec 16, 2016
@johanneslumpe
Copy link
Author

@alt-j I am aware of that, and that is not the issue. The issue is that upon calling elementToString the above error is thrown. I am not calling render.

@alt-j alt-j reopened this Dec 16, 2016
@alt-j
Copy link
Owner

alt-j commented Dec 16, 2016

Can you show source code, or full error stack?

@johanneslumpe
Copy link
Author

@alt-j sorry, really busy at the moment. Will try to get you something soon. I haven't been going back to this yet since you pointed out that this is rendering to static markup, which isn't super helpful for me as I do not want a 2nd render on the client. I know there is a PR in place which checks against the DOM instead of the checksums, but since that's not yet merged...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants