Closed ayoung8 closed 7 years ago
The output of npm list @angular/material
is
cfg-classification-webapp$ npm list @angular/material
cfg-classification-webapp@0.0.0 /opt/angular/cfg-classification-webapp
├── UNMET PEER DEPENDENCY @angular/animations@4.0.3
├── UNMET PEER DEPENDENCY @angular/core@4.0.1
└── @angular/material@2.0.0-beta.6
npm ERR! peer dep missing: @angular/animations@4.0.1, required by @angular/platform-server@4.0.1
npm ERR! peer dep missing: @angular/core@4.0.3, required by @angular/animations@4.0.3
Seems that there are dependencies missing from the source in git Developer will need to include. The next build will incorporate any new commits
Dependencies are not included in source in git, they are fetched at build time following the project build instructions found at https://github.com/hres/cfg-classification-webapp under the heading "Install package dependencies"
ng build -bh cfg-classification-webapp
Hash: ce11d849ba517ac3f28a
Time: 34359ms
chunk {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 171 kB {4} [initial] [rendered]
chunk {1} main.bundle.js, main.bundle.js.map (main) 148 kB {3} [initial] [rendered]
chunk {2} styles.bundle.js, styles.bundle.js.map (styles) 284 kB {4} [initial] [rendered]
chunk {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 5.73 MB [initial] [rendered]
chunk {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]
ERROR in /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/core/bidi/index.d.ts (8,99): Cannot find module '@angular/cdk'.
ERROR in /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/core/portal/portal.d.ts (8,85): Cannot find module '@angular/cdk'.
ERROR in /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/core/portal/portal-directives.d.ts (8,76): Cannot find module '@angular/cdk'.
ERROR in /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/core/portal/dom-portal-host.d.ts (8,31): Cannot find module '@angular/cdk'.
ERROR in /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/core/platform/platform.d.ts (8,26): Cannot find module '@angular/cdk'.
ERROR in /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/core/platform/features.d.ts (8,40): Cannot find module '@angular/cdk'.
ERROR in /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/core/platform/index.d.ts (8,32): Cannot find module '@angular/cdk'.
ERROR in /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/core/a11y/live-announcer.d.ts (8,139): Cannot find module '@angular/cdk'.
ERROR in /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/core/a11y/focus-trap.d.ts (8,95): Cannot find module '@angular/cdk'.
ERROR in /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/core/a11y/interactivity-checker.d.ts (8,38): Cannot find module '@angular/cdk'.
ERROR in /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/core/a11y/fake-mousedown.d.ts (8,49): Cannot find module '@angular/cdk'.
ERROR in /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/core/a11y/index.d.ts (8,28): Cannot find module '@angular/cdk'.
ERROR in /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/core/keyboard/keycodes.d.ts (8,140): Cannot find module '@angular/cdk'.
ERROR in /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/core/core.d.ts (1,99): Cannot find module '@angular/cdk'.
ERROR in /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/core/a11y/list-key-manager.d.ts (8,44): Cannot find module '@angular/cdk'.
ERROR in /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/sort/sort-header.d.ts (11,30): Cannot find module '@angular/cdk'.
ERROR in /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/table/cell.d.ts (9,54): Cannot find module '@angular/cdk'.
ERROR in /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/table/table.d.ts (1,26): Cannot find module '@angular/cdk'.
ERROR in /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/table/row.d.ts (1,38): Cannot find module '@angular/cdk'.
ERROR in Error encountered resolving symbol values statically. Could not resolve @angular/cdk relative to /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/index.d.ts., resolving symbol MaterialModule in /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/index.d.ts, resolving symbol MaterialModule in /opt/angular/cfg-classification-webapp/node_modules/@angular/material/typings/index.d.ts
ERROR in ./~/@angular/material/@angular/material.es5.js
Module not found: Error: Can't resolve '@angular/cdk' in '/opt/angular/cfg-classification-webapp/node_modules/@angular/material/@angular'
@ ./~/@angular/material/@angular/material.es5.js 10:0-932
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi ./src/main.ts
Seems like your libraries are more up to date than mine now... Let me sync up and see if I get this. Hold on.
Okay, with new libraries I got the same problem as you. I added the new dependency on @ angular/cdk. Please try again.
It is working now. Please note: Deleting the node_modules folder should not be part of the build automation for the exact reason as the above problem with the new missing library angular/cdk. If/when we feel we need new libraries we will put in a "rm -rf node_modules" request to force it to pull the latest.
Luc would like to know the build dependencies the output of
npm list @angular/material
is required