Closed jbeckton closed 7 years ago
I was able to get it to run after setting the angular lib dependencies to version 4.0.0-rc.5
cloned it today, and it's not running today:
ERROR in Cannot read property 'getSourceFile' of undefined
ERROR in C:/ng-universal-demo/src/main.server.ts (5,42): Cannot find module './ngfactory/src/app.server.ngfactory'.
@jbeckton, could you please post your package.json
here, and confirm, if it works today?
This may be due to the angular libraries being in constant change right now but maybe there is a way to get it to run?
Hash: 3230f800ab007fa2dd86 Version: webpack 2.2.1 Time: 17483ms Asset Size Chunks Chunk Names main.js 1.06 MB 0 [emitted] [big] main [2] ./~/rxjs/Observable.js 5.45 kB {0} [built] [6] ./~/@angular/core/@angular/core.es5.js 460 kB {0} [built] [10] ./~/rxjs/util/root.js 470 bytes {0} [built] [18] ./~/rxjs/Subject.js 5.62 kB {0} [built] [22] ./~/@angular/platform-browser/@angular/platform-browser.es5.js 141 kB {0} [built] [36] ./~/@angular/core/@angular async 160 bytes {0} [built] [63] ./src/express-engine.ts 712 bytes {0} [built] [64] ./~/express/index.js 224 bytes {0} [built] [65] ./~/zone.js/dist/zone-node.js 71.6 kB {0} [built] [69] ./~/@angular/platform-server/@angular/platform-server.es5.js 73.7 kB {0} [built] [82] ./~/express/lib/express.js 1.95 kB {0} [built] [94] ./~/merge-descriptors/index.js 1.22 kB {0} [built] [126] ./~/rxjs/observable/merge.js 128 bytes {0} [built] [132] ./~/rxjs/operator/share.js 922 bytes {0} [built] [157] ./src/main.server.ts 735 bytes {0} [built]
WARNING in ./~/@angular/core/@angular/core.es5.js 5889:15-36 Critical dependency: the request of a dependency is an expression
WARNING in ./~/@angular/core/@angular/core.es5.js 5905:15-102 Critical dependency: the request of a dependency is an expression
WARNING in ./~/express/lib/view.js 78:29-56 Critical dependency: the request of a dependency is an expression
ERROR in Error encountered resolving symbol values statically. Could not resolve @angular/animations/browser relative to /home/jbeckton/Documents/Projects/sandbox/ng-universal-demo/node_modules/@angular/platform-browser/animations/index.d.ts., resolving symbol ɵe in /home/jbeckton/Documents/Projects/sandbox/ng-universal-demo/node_modules/@angular/platform-browser/animations/index.d.ts, resolving symbol BrowserAnimationsModule in /home/jbeckton/Documents/Projects/sandbox/ng-universal-demo/node_modules/@angular/platform-browser/animations/index.d.ts, resolving symbol BrowserAnimationsModule in /home/jbeckton/Documents/Projects/sandbox/ng-universal-demo/node_modules/@angular/platform-browser/animations/index.d.ts
ERROR in /home/jbeckton/Documents/Projects/sandbox/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 '/home/jbeckton/Documents/Projects/sandbox/ng-universal-demo/src' @ ./src/main.server.ts 3:0-80
ERROR in ./~/@angular/platform-server/@angular/platform-server.es5.js Module not found: Error: Can't resolve '@angular/animations/browser' in '/home/jbeckton/Documents/Projects/sandbox/ng-universal-demo/node_modules/@angular/platform-server/@angular' @ ./~/@angular/platform-server/@angular/platform-server.es5.js 13:0-63 @ ./src/express-engine.ts @ ./src/main.server.ts
ERROR in ./~/@angular/platform-browser/@angular/platform-browser/animations.es5.js Module not found: Error: Can't resolve '@angular/animations/browser' in '/home/jbeckton/Documents/Projects/sandbox/ng-universal-demo/node_modules/@angular/platform-browser/@angular/platform-browser' @ ./~/@angular/platform-browser/@angular/platform-browser/animations.es5.js 13:0-249 @ ./~/@angular/platform-server/@angular/platform-server.es5.js @ ./src/express-engine.ts @ ./src/main.server.ts