5

I just installed Angular 8. When I try to run a project with "ng serve --open" it gives me the following error:


Could not find the implementation for builder @angular-devkit/build-angular:dev-server
Error: Could not  find the implementation for builder @angular-devkit/build-angular:dev-server
    at WorkspaceNodeModulesArchitectHost.resolveBuilder (C:\Users\manus\project\space-estate\webshop\frontend\client\node_modules\@angular\cli\node_modules\@angular-devkit\architect\node\node-modules-architect-host.js:49:19)
    at ServeCommand.initialize (C:\Users\manus\project\space-estate\webshop\frontend\client\node_modules\@angular\cli\models\architect-command.js:72:63)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:11)
    at startup (internal/bootstrap/node.js:285:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)

when I check the versions it gives me the following:

Angular CLI: 8.0.1
Node: 10.13.0
OS: win32 x64
Angular: 8.0.0
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.13.9
@angular-devkit/build-angular     0.13.9
@angular-devkit/build-optimizer   0.13.9
@angular-devkit/build-webpack     0.13.9
@angular-devkit/core              8.0.1
@angular-devkit/schematics        8.0.1 (cli-only)
@ngtools/webpack                  7.3.9
@schematics/angular               8.0.1 (cli-only)
@schematics/update                0.800.1 (cli-only)
rxjs                              6.5.2
typescript                        3.4.5
webpack                           4.29.0
Japhet
  • 161
  • 1
  • 2
  • 12
  • 1
    `"@angular-devkit/build-angular": "~0.800.0"`. See https://github.com/angular/angular-cli/releases/tag/v8.0.0 for details. – Seven Jun 24 '19 at 08:24

5 Answers5

3

use this command

npm install --save-dev @angular-devkit/build-angular

Ehsan Kiani
  • 3,050
  • 1
  • 17
  • 19
  • run "npm install --save @angular-devkit/build-angular" in your project folder and see if it works – Ehsan Kiani May 29 '19 at 09:48
  • 3
    tried everything in this thread, updated all the dependencies and it still gives me the same error. I added the output when I check the version to the question above – Japhet Jun 03 '19 at 10:51
2

If you are using Angular 8, you should ensure your Angular packages are safely updated to the current stable version by running the following command

ng update

Otherwise, you can try to manually update the @angular/cli and core framework package manually.

ng update @angular/cli @angular/core
wentjun
  • 40,384
  • 10
  • 95
  • 107
  • updated everything and it still doesnt work. Updated the question with the versions I have – Japhet Jun 03 '19 at 10:56
  • @Japhet Sorry mate, this (as well as the other answer on this post) is all I know. Perhaps you can go to Angular's github page and see if a similar problem has been posted and reported? – wentjun Jun 04 '19 at 01:30
2

It seems to be an issue with @angular-devkit/build-angular, try downgrading to a specific version

npm i @angular-devkit/build-angular@0.803.24

This version worked for me.

sjsj15
  • 745
  • 6
  • 11
1

I solved that problem by below comment. Hopefully, it will work for you too

npm i --save-dev @angular-devkit/build-angular@latest
Can Çalışkan
  • 274
  • 3
  • 16
0

I Have followed following steps and it worked for give it a try.

Delete current project if its new new one or get backup of your project.

update angular cli globally by

npm i -g @angular/cli@8.0.2

then create a new project.

ng new name

ng serve

thats it.

yogesh chavan
  • 599
  • 5
  • 16