question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not find the implementation for builder @angular-devkit/build-angular:browser

See original GitHub issue

🐞 Bug report

- [ ] new
- [ x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Description

I tried to build the project using ng build --prod I got this error.

🔥 Exception or Error



Could not find the implementation for builder @angular-devkit/build-angular:browser
Error: Could not find the implementation for builder @angular-devkit/build-angular:browser
    at WorkspaceNodeModulesArchitectHost.resolveBuilder (/Volumes/Data/Angular/htdocs/thecampus-angular/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js:49:19)
    at BuildCommand.initialize (/Volumes/Data/Angular/htdocs/thecampus-angular/node_modules/@angular/cli/models/architect-command.js:135:55)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at Function.Module.runMain (internal/modules/cjs/loader.js:757:11)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)

🌍 Your Environment



Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.8
@angular-devkit/build-angular     0.6.8
@angular-devkit/build-optimizer   0.6.8
@angular-devkit/core              0.6.8
@angular-devkit/schematics        8.0.0
@angular/cli                      8.0.0
@angular/compiler-cli             8.0.0
@ngtools/webpack                  6.0.8
@schematics/angular               8.0.0
@schematics/update                0.800.0
rxjs                              5.5.12
typescript                        2.5.3
webpack                           4.8.3
    


Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:34

github_iconTop GitHub Comments

42reactions
KShewenggercommented, Jun 7, 2019

What have worked for me was:

1.) Make sure your angular version starts with 7.2.15 (if not, you should install this version first) 2.) Be sure your Node version is 12.x.x 3.) Typescript version 3.4.5 3.) ng update @angular/cli @angular/core (for @angular/cli, be sure to install it both local & global) 4.) npm uninstall @angular-devkit/build-angular 5.) npm install @angular-devkit/build-angular 6.) ng update --all 7.) If you have ViewChild on your application, be sure to edit them with: Source

@ViewChild(<name>, {static: true}) <name>; // Adding static: true on the 2nd param

29reactions
lasantha57commented, Jun 3, 2019

I got this error when I to upgrade from angular 7 to 8

Could not find the implementation for builder @angular-builders/dev-server:generic
Error: Could not find the implementation for builder @angular-builders/dev-server:generic
Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not find the implementation for builder @angular-devkit ...
I got this working by reinstalling the build-angular package. Note the '--save-dev' flag on the install command:
Read more >
Resolved:Could not find @angular-devkit/build-angular:browser
Steps to fix all issues – Approach 2 · Delete the package-lock. · delete the node_module folder manually or use the below command...
Read more >
Could not find the implementation for builder @angular-devkit ...
Looks like you're using the old builders. In version 8 we update some of the internals of the CLI. 34
Read more >
Could not find module '@angular-devkit/build-angular'
To solve the error "Could not find module '@angular-devkit/build-angular'", make sure to install the package by opening your terminal in your project's root ......
Read more >
Fixing Could not find module @angular-devkit/build-angular ...
Solution 1: Delete node_modules folder and run npm install · Solution 2 : Install @angular-devkit/build-angular package as a dev dependency.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found