robwormald / ng-universal-demo

256 stars 126 forks source link

Absolute path #16

Open DaveStein opened 7 years ago

DaveStein commented 7 years ago

Was previously getting this error:

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration.output.path: The provided value "dist" is not an absolute path!

Still getting errors though even with that... so looking for recommendation to fix in this PR as well


WARNING in ./~/express/lib/view.js
80:29-41 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 /Users/dstein/Repositories/ng-universal-demo/node_modules/@angular/platform-browser/animations/index.d.ts., resolving symbol ɵe in /Users/dstein/Repositories/ng-universal-demo/node_modules/@angular/platform-browser/animations/index.d.ts, resolving symbol BrowserAnimationsModule in /Users/dstein/Repositories/ng-universal-demo/node_modules/@angular/platform-browser/animations/index.d.ts, resolving symbol BrowserAnimationsModule in /Users/dstein/Repositories/ng-universal-demo/node_modules/@angular/platform-browser/animations/index.d.ts

ERROR in /Users/dstein/Repositories/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/dstein/Repositories/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 '/Users/dstein/Repositories/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 '/Users/dstein/Repositories/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
empurium commented 7 years ago

FYI this is fixed with more in #14