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

Doesn't work with bel server-side - no require('bel').createElement #1

Closed
nilliams opened this issue Jul 18, 2017 · 3 comments
Closed

Comments

@nilliams
Copy link

I found this doesn't work with bel for SSR, e.g. if using choo's .toString() because require('bel').createElement doesn't exist on the server.

(bel uses the pelo module on the server, which does not export a createElement).

Not sure if there's a sensible workaround, but worth adding a note to the readme?

@JRJurman
Copy link

This is an issue with bel, not with rbel. You can post it on their repo, however, if you just want the create-element function, you can try this: https://github.com/jrjurman/bel-create-element

@nilliams
Copy link
Author

Cool, thank you for the link to bel-create-element, I will try that out when I get a chance!

Yes I appreciate the inconsistency in the bel API is not the fault of this module, I was just suggesting a warning in the readme.

No big deal though, just wanted to raise as I burned a bit of time figuring out what was going on. Feel free to close!

@aaaristo
Copy link
Owner

Added to the readme. Thanks.

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

3 participants