SSR doesn't work in example
warsawgentleman opened this issue · comments
Hey,
first of all I would like to thank you for your awesome transformer - it's great, that you can use loadable-components and typescript without babel.
I spotted one bug and it occurs in your example - SSR doesn't seem to work. When you check source of home page, there is no content of page:
There should be text "Home" and link to about page, but div with id="app" is empty.
I think that the issue might be that App
isn't wrapped in extractor.collectChunks
right before you call renderToString
function. Another problem is that, when you add extractor.collectChunks
there is an error:
Is there anything we can do about it?
@warsawgentleman
Hello, I had a same problem with extractor.collectChunks
function calls
But after I had upgraded the typescript version to ^3.9.0
in root/example package.json
and recompiled the library, the problem was solved.
I hope my experience will help your case