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
SSR outputs <undefined></undefined> node #822
Comments
Do you have |
Good catch, I did have it installed. Although I removed Can you reproduce it too? |
maybe you should try upgrading |
yeah I forgot about that part thanks @evont We should make it more obvious though /cc @developit |
Thank you @evont, that fixed it! @ForsakenHarmony Yeah it'd be a good idea to update the gist |
Gist updated. Might be neat for us to add a check to the CLI that verifies known good versions. |
This is fixed in the latest versions of CLI. |
Do you want to request a feature or report a bug?
Bug
What is the current behaviour?
When enabling SSR, the output is a
<undefined></undefined>
node, instead of the contents of the pageIf the current behaviour is a bug, please provide the steps to reproduce.
Follow this gist to use latest preact cli, and update preact dependencies to latest version: https://gist.github.com/developit/f1a3425ded9b52206c372b6c6b54ddcb
Add a
prerender-urls.json
file in the root project folder and add this content:run
npm run build
notice how the file
build/index.html
has a<undefined></undefined>
HTML node instead of the SSRs pageWhat is the expected behaviour?
The SSR'd HTML file should include the page contents.
If this is a feature request, what is motivation or use case for changing the behaviour?
N/A
Please mention other relevant information.
The text was updated successfully, but these errors were encountered: