Bug with version 0.0.24 Recent Release
Build server using @angular-cli is now producing errors when pulling in the new version of the devkit.
[08:42:38][npm run build:teamcity] Error: Cannot find module 'rxjs/operators/map'
[08:42:38][npm run build:teamcity] at Function.Module._resolveFilename (module.js:469:15)
[08:42:38][npm run build:teamcity] at Function.Module._load (module.js:417:25)
[08:42:38][npm run build:teamcity] at Module.require (module.js:497:17)
[08:42:38][npm run build:teamcity] at require (internal/module.js:20:19)
[08:42:38][npm run build:teamcity] at Object.<anonymous> (E:\TeamCityBuildAgent2\work\4f3d8920f08a3388\src\ClaimsControl.Api\node_modules\@angular-devkit\core\src\json\schema\registry.js:15:15)
[08:42:38][npm run build:teamcity] at Module._compile (module.js:570:32)
[08:42:38][npm run build:teamcity] at Object.Module._extensions..js (module.js:579:10)
[08:42:38][npm run build:teamcity] at Module.load (module.js:487:32)
[08:42:38][npm run build:teamcity] at tryModuleLoad (module.js:446:12)
[08:42:38][npm run build:teamcity] at Function.Module._load (module.js:438:3)
This will cause all @angular-cli builds to fail.
I had to add @angular-devkit/[email protected] in my package.json, because the 0.0.46 didn't correct the ng generate, but now i have a warning when i « npm install ». The CLI still work, but it's just annoying to get the warning.
npm WARN @schematics/[email protected] requires a peer of @angular-devkit/[email protected] but none is installed. You must install peer dependencies yourself.
npm WARN @schematics/[email protected] requires a peer of @angular-devkit/[email protected] but none is installed. You must install peer dependencies yourself.
@Davilink thanks for your comment. That was the last piece of the puzzle I needed to get get my build back in shape.
Just created a fresh project and tried ng serve.
module.js:557
throw err;
^
Error: Cannot find module '@angular-devkit/core'
at Function.Module._resolveFilename (module.js:555:15)
at Function.Module._load (module.js:482:25)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (E:\Projects\...\node_modules\@angular-devkit\schematics\src\tree\virtual.js:10:16)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
I think this is sorted now. Please see https://github.com/angular/angular-cli/issues/9283#issuecomment-358937066 for a list of the updated versions with the fix.
Thanks Filipe. We've just migrated to Angular 5.2.1 with new Rxjs and Angular CLI. Thus I can't confirm if it still works for older versions, but for us everything is working fine now. Cheers!