ssrwpo / ssr

SSR - Router with SSR for Node & Meteor
https://ssrwpo.github.io/ssr/
MIT License
93 stars 16 forks source link

Fails w/ Meteor 1.6.1 #86

Open msteinmn opened 6 years ago

msteinmn commented 6 years ago

It's an elegant package that uses some Meteor internal API for SSR from the WebApp and WebAppInternals.getBoilerplate API. Unfortunately it no longer works with newer Meteor versions.

Meteor 1.6.1 changed the return value from WebAppInternals.getBoilerplate from String to Stream. Line 67 in server/steps/applicationRendering.jsx now causes an error.

Also I get this error: TypeError: Cannot read property 'toComponent' of undefined caused by line 62 in the same file. I couldn't find a solution for either, so I am posting it here.

Here is the Meteor commit that changed from String to Stream: https://github.com/meteor/meteor/commit/991fb5ea8650a5cb2f374675f64d2c85e4d1b1db#diff-79c5e18978e1bfa64cbb9edb380f2920

kwunyeung commented 6 years ago

Having the same issue. server/steps/applicationRendering.jsx giving TypeError: Cannot read property 'toLowerCase' of undefined error.