peter-mach/angular2-starter-kit

Renders <html> headers twice

Closed this issue · 7 comments

Below is a snippet of the page source. This is a fresh checkout from the latest repo here on github:

<!DOCTYPE html>
<html>
  <head>
    <title>Angular 2 Starter Kit - Uniwersal, Webpack, PostCSS, Node.js/Express</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" type="image/x-icon" href="assets/images/favicon.ico">
    <base href="/"></base>
    <link rel="stylesheet" href="/styles.css" media="screen" charset="utf-8">
  </head>
  <body>
    <!DOCTYPE html><html><head>
    <title>Angular 2 Starter Kit - Uniwersal, Webpack, PostCSS, Node.js/Express</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" type="image/x-icon" href="assets/images/favicon.ico">
    <base href="/">
    <link rel="stylesheet" href="/styles.css" media="screen" charset="utf-8">
  </head>
  <body>
    <app><router-outlet></router-outlet>

Why is it doing this? and how do I make it stop?

What is your node version and how exactly do you start the application?

I have tried with node versions: 4.5.0, 5.9.0 and 6.2.3 I believe? Same
result with all of them.

I start it with

npm run build
npm run serve:pm2

I spent all day yesterday trying to get that other angular2 universal kit
on github that yours is based off of to work but encountered nothing but
dep conflicts and issues with typings.

Then I found yours and it works right put of the box (and is structured far
better), but can't seem to figure out why it's rendering the head content
twice. I'm going crazy trying to figure this out, haha.

On Jul 29, 2016 7:11 AM, "Mikhail Zhuravlev" notifications@github.com
wrote:

What is your node version and how exactly do you start the application?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#18 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AELexvRX2uovQ_9QHNei1zFSV_AsyHLIks5qagoBgaJpZM4JYK4J
.

I have launched it now, same problem. You can checkout more recent release and try it again, to figure out if it was always like this.

I am assuming you mean an older release?

On Jul 29, 2016 10:27 AM, "Mikhail Zhuravlev" notifications@github.com
wrote:

I have launched it now, same problem. You can checkout more recent release
and try it again, to figure out if it was always like this.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#18 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AELexkg4QyLFdpTwUIncaT8Hnb8SuaZ7ks5qajf-gaJpZM4JYK4J
.

Which release if your website using? The one is the same as the example in
the git repository. It doesn't have this problem.

On Jul 29, 2016 1:34 PM, "Rick Warren" warren.rick@gmail.com wrote:

I am assuming you mean an older release?

On Jul 29, 2016 10:27 AM, "Mikhail Zhuravlev" notifications@github.com
wrote:

I have launched it now, same problem. You can checkout more recent
release and try it again, to figure out if it was always like this.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#18 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AELexkg4QyLFdpTwUIncaT8Hnb8SuaZ7ks5qajf-gaJpZM4JYK4J
.

So it works on the 1.3.1 release. Except server side scripting isnt working
right. It injects a big section of obfuscated javascript into the page
instead of the page elements.

I noticed your website does this too. Whats with that? SSR should display
all the page elements, not inject javascript into the page...

On Jul 29, 2016 1:35 PM, "Rick Warren" warren.rick@gmail.com wrote:

Which release if your website using? The one is the same as the example in
the git repository. It doesn't have this problem.

On Jul 29, 2016 1:34 PM, "Rick Warren" warren.rick@gmail.com wrote:

I am assuming you mean an older release?

On Jul 29, 2016 10:27 AM, "Mikhail Zhuravlev" notifications@github.com
wrote:

I have launched it now, same problem. You can checkout more recent
release and try it again, to figure out if it was always like this.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#18 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AELexkg4QyLFdpTwUIncaT8Hnb8SuaZ7ks5qajf-gaJpZM4JYK4J
.

Fixed in v.2.0.0