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

a console.log in AppComponent is called 3 or 4 times on the server #23

Closed
theomathieubhvr opened this issue May 26, 2017 · 1 comment
Closed
Labels

Comments

@theomathieubhvr
Copy link
Contributor

I'm submitting a ... (check one with "x")

[x] bug report => check the README and search github for a similar issue or PR before submitting
[ ] support request => check the README and search github for a similar issue or PR before submitting
[ ] feature request

Current behavior

When adding console.log('test') in the constructor of AppComponent file, the server is logging it 3 or 4 times.

Minimal reproduction of the problem with instructions

  1. Add a random console.log in AppComponent
  2. npm run build:universal-dev
  3. npm run serve
  4. Load the page at localhost:8000
  • Angular version: 4.1.0
@theomathieubhvr
Copy link
Contributor Author

This was mainly due to the fact that Chrome is trying to get the favicon.ico even if it is not referenced. I used npm serve-favicon library to fix this.

@fulls1z3 fulls1z3 changed the title A console.log in AppComponent is called 3 or 4 times on the server [invalid] a console.log in AppComponent is called 3 or 4 times on the server Jun 18, 2017
@fulls1z3 fulls1z3 changed the title [invalid] a console.log in AppComponent is called 3 or 4 times on the server a console.log in AppComponent is called 3 or 4 times on the server Sep 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants