robwormald / ng-universal-demo

256 stars 126 forks source link

How to run this demo? Clone and run npm install doesn't work #19

Open Liranius opened 7 years ago

Liranius commented 7 years ago

Sorry for this newbie question, but seem like I cannot find a way to run this demo. Can I ask for some step-by-step instructions?

Mjf94 commented 7 years ago

@Liranius The developer suggests using another repo. You may check his comment here.https://github.com/robwormald/ng-universal-demo/issues/12#issuecomment-289188472

lordfriend commented 7 years ago

before run npm start, you need use ngc manually to generate the ngFactory in /src but there are a bug in src/app.ts, BrowserModule no longer support a function call, remove it.

Then cd into project folder run $(npm bin)/ngc then you will get a ngFactory folder in /src