kickstart-meteor-react-flowrouter-SSR-codeSplit icon indicating copy to clipboard operation
kickstart-meteor-react-flowrouter-SSR-codeSplit copied to clipboard

SSR not working with 1.4.2

Open Aur0r opened this issue 9 years ago • 6 comments

Hi, thank you for this kickstart project till version 1.3.4.4 of Meteor this works very well. I recently tried the version 1.4.2 and there I have problems getting SSR to work in this project.

Do you have an idea what could be the issue here?

I do have every package up-to-date for version 1.3.4.4 but when upgrading the result is (with deactivating javascript) that there is only a white page showing up in the browser.

Thank you!

Aur0r avatar Nov 04 '16 15:11 Aur0r

Seems that FlowRouter is the issue here: https://forums.meteor.com/t/after-update-to-1-4-2-flowrouterssr-not-working/30777

Aur0r avatar Nov 04 '16 16:11 Aur0r

Thanks. I've been using my own fork of flow router ssr recently, since the repo is not maintained anymore. Hopefully I'll be able to find the exact issue.

gsabran avatar Nov 04 '16 17:11 gsabran

There is an issue now in the official repo of meteor about this bug: https://github.com/meteor/meteor/issues/7992

Aur0r avatar Nov 07 '16 10:11 Aur0r

thanks for looking into it. So is the conclusion that meteorhacks/inject-data has a bug and impacts flow-router-ssr through its direct dependencies on inject-data, and indirect dependency through meteorhacks:fast-render?

... kadira has not been updating those repo in a long while. It's really annoying if we've to fork everything!

gsabran avatar Nov 07 '16 18:11 gsabran

From the latest post in the linked issue it seems to me that the rewrite of the inject-data package was just a workaround at that time.

According to the aforementioned post the main problem is within the picker and webapp packages.

Aur0r avatar Nov 09 '16 08:11 Aur0r

I have investigated a bit further and in the react apollo app they took some parts of the SSR functionality from FlowrouterSSR. And they are using Meteor 1.4.2.

But I have not actually tested yet if their SSR solution works.

You can see the usage here: https://github.com/apollostack/react-apollo/blob/master/examples/meteor/server/index.js

So I thought maybe the algorithm in the hook from WebApp.connectHandlers.use in this file could be somehow (besides the ApolloClient library) applied to your version of the Flowrouter implementation and then it would work again.

Aur0r avatar Nov 14 '16 12:11 Aur0r