robwormald / ng-universal-demo

256 stars 126 forks source link

chore: upgrade to 4.0.0 stable #14

Open mattlewis92 opened 7 years ago

mattlewis92 commented 7 years ago

When I checked out the repo and ran yarn && yarn start it threw this error:

ERROR in Error encountered resolving symbol values statically. Calling function 'BrowserModule', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol AppModule in /Users/mattlewis/Code/open-source/ng-universal-demo/src/app.ts, resolving symbol AppModule in /Users/mattlewis/Code/open-source/ng-universal-demo/src/app.ts

ERROR in /Users/mattlewis/Code/open-source/ng-universal-demo/src/main.server.ts (5,42): Cannot find module './ngfactory/src/app.server.ngfactory'.)

ERROR in ./src/main.server.ts
Module not found: Error: Can't resolve './ngfactory/src/app.server.ngfactory' in '/Users/mattlewis/Code/open-source/ng-universal-demo/src'
 @ ./src/main.server.ts 3:0-80

Upgrading to 4.0.0 final and adding the animations dependency seemed to solve it 😄

empurium commented 7 years ago

+1 on this! Was about to submit a PR before I saw this one :) Working great for me as well. Getting sub-10ms response times too ❤️

mrjmd commented 7 years ago

This worked perfectly for me.