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

Serverside rendering is not working? #59

Open
Kunepro opened this issue May 11, 2016 · 1 comment
Open

Serverside rendering is not working? #59

Kunepro opened this issue May 11, 2016 · 1 comment

Comments

@Kunepro
Copy link

Kunepro commented May 11, 2016

In constant.js both values are already set to true and therefore server side rendering should work.
However if I disable JS nothing gets rendered, and if I enable JS the screen is blank until the browser has finished loading the JS. Both behaviour suggest that server-side is not working.
I did npm install, npm run buildand then npm start however this is my error.log:

2016-05-11 21:59 +01:00: DEPRECATION WARNING: `renderToStringWithPreboot` is no longer supported and will be removed in next release.
2016-05-11 21:59 +01:00: DEPRECATION WARNING: `renderToString` is no longer supported and will be removed in next release.
2016-05-11 22:00 +01:00: DEPRECATION WARNING: `renderToStringWithPreboot` is no longer supported and will be removed in next release.
DEPRECATION WARNING: `renderToString` is no longer supported and will be removed in next release.
2016-05-11 22:00 +01:00: DEPRECATION WARNING: `renderToStringWithPreboot` is no longer supported and will be removed in next release.
2016-05-11 22:00 +01:00: DEPRECATION WARNING: `renderToString` is no longer supported and will be removed in next release.
2016-05-11 22:00 +01:00: DEPRECATION WARNING: `renderToStringWithPreboot` is no longer supported and will be removed in next release.
2016-05-11 22:00 +01:00: DEPRECATION WARNING: `renderToString` is no longer supported and will be removed in next release.
2016-05-11 22:00 +01:00: DEPRECATION WARNING: `renderToStringWithPreboot` is no longer supported and will be removed in next release.
2016-05-11 22:00 +01:00: DEPRECATION WARNING: `renderToString` is no longer supported and will be removed in next release.
2016-05-11 22:00 +01:00: DEPRECATION WARNING: `renderToStringWithPreboot` is no longer supported and will be removed in next release.
2016-05-11 22:00 +01:00: DEPRECATION WARNING: `renderToString` is no longer supported and will be removed in next release.

This is npm run-script status:
Describing process with id 0 - name angular2-universal-starter
┌───────────────────┬──────────────────────────────────────────────────────────────────────┐
│ status │ online │
│ name │ angular2-universal-starter │
│ restarts │ 0 │
│ uptime │ 37s │
│ script path │ /Users/[.......] /tools/prod.js │
│ script args │ N/A │
│ error log path │ /Users/[.......] /logs/errors-0.log │
│ out log path │ /Users/[.......] /logs/output-0.log │
│ pid path │ /Users/[.......] /.pm2/pids/angular2-universal-starter-0.pid │
│ interpreter │ node │
│ interpreter args │ N/A │
│ script id │ 0 │
│ exec cwd │ /Users/[.......] │
│ exec mode │ fork_mode │
│ node.js version │ 5.10.1 │
│ watch & reload │ ✔ │
│ unstable restarts │ 0 │
│ created at │ 2016-05-11T20:59:27.106Z │
└───────────────────┴──────────────────────────────────────────────────────────────────────┘
Revision control metadata
┌──────────────────┬────────────────────────────────────────────────────────┐
│ revision control │ git │
│ remote url │ https://github.com/alexpods/angular2-universal-starter
│ repository root │ /Users/[.......] │
│ last update │ 2016-05-11T20:59:57.000Z │
│ revision │ 813a512
│ comment │ Changed google chrome url │
│ branch │ master │
└──────────────────┴────────────────────────────────────────────────────────┘
Code metrics value
┌────────────┬────────┐
│ Loop delay │ 1.01ms │
└────────────┴────────┘
Add your own code metrics: http://bit.ly/code-metrics
Use pm2 logs angular2-universal-starter (--lines 1000) to display logs
Use pm2 monit to monitor CPU and Memory usage angular2-universal-starter

@ghost
Copy link

ghost commented May 27, 2016

I'm seeing the same thing. There doesn't appear to be any rendered content within either the home or worker routes. It is only populated on the client side after all the dependencies have loaded.

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