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

Router returning a blank page with Meteor 1.6.1.1 #88

Open
nilesh-parab opened this issue Apr 20, 2018 · 0 comments
Open

Router returning a blank page with Meteor 1.6.1.1 #88

nilesh-parab opened this issue Apr 20, 2018 · 0 comments

Comments

@nilesh-parab
Copy link

nilesh-parab commented Apr 20, 2018

Hi,
We recently updated from Meteor 1.5.1 to 1.6.1.1. We encountered the same problem raised here. The problem was when Meteor updated their code for WebAppInternals.getBoilerplate to return a stream as opposed to string before.

So we temporarily fixed it by converting the stream to string & passing the string to html minifier used as below:

const meteorHtml = WebAppInternals.getBoilerplate(stepResults.req, WebApp.defaultArch);
let actualHTML = '';
meteorHtml.stream.on('data', (chunk) => {
actualHTML += chunk.toString();
});
meteorHtml.stream.on('end', () => {
stepResults.html = htmlMinifier.minify(actualHTML, {
removeScriptTypeAttributes: true,
removeStyleLinkTypeAttributes: true,
collapseWhitespace: true,
});
But after doing this, when we hit the application we get a blank page with console printed that we had put after the createRouter call finishes.

Can someone please help understanding what might be the cause of it or some pointers to debug the issue?

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

1 participant