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.

ERROR: Browser build not found (lack of entry with build-angular:browser builder) in angular.json

See original GitHub issue

I’m submitting a…


[*] Bug report  
[ ] Feature request
[ ] Documentation issue or request

In package


[ ] @ng-toolkit/init
[ ] @ng-toolkit/serverless
[*] @ng-toolkit/universal

Current behavior

  • @ng-toolkit/universal@1.1.16 added 44 packages in 49.943s Installed packages for tooling via npm. ERROR: Browser build not found (lack of entry with build-angular:browser builder) in angular.json

Expected behavior

Minimal reproduction of the problem with instructions

Example repository

What is the motivation / use case for changing the behavior?

Environment


Angular version: X.Y.Z

Angular: 6.0.0, Angular CLI: 6.0.1

Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: XX  
Node: 10.1.0
- Platform:  
Cent OS 7  "3.10.0-862.3.2.el7.x86_64"

Others:

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
noiissyboycommented, Jun 8, 2018

I haven’t upload to github yet. iam pasting my angular.json file below, check my website at http://biochem.iisc.ernet.in/GenomeBiology2018/#/

{ “$schema”: “./node_modules/@angular/cli/lib/config/schema.json”, “version”: 1, “newProjectRoot”: “projects”, “projects”: { “genome-biology2018”: { “root”: “”, “sourceRoot”: “src”, “projectType”: “application”, “architect”: { “build”: { “builder”: “@angular-devkit/build-angular:browser”, “options”: { “outputPath”: “dist”, “index”: “src/index.html”, “main”: “src/main.ts”, “tsConfig”: “src/tsconfig.app.json”, “polyfills”: “src/polyfills.ts”, “assets”: [ “src/assets”, “src/favicon.ico” ], “styles”: [ “src/styles.css” ], “scripts”: [] }, “configurations”: { “production”: { “optimization”: true, “outputHashing”: “all”, “sourceMap”: false, “extractCss”: true, “namedChunks”: false, “aot”: true, “extractLicenses”: true, “vendorChunk”: false, “buildOptimizer”: true, “fileReplacements”: [ { “replace”: “src/environments/environment.ts”, “with”: “src/environments/environment.prod.ts” } ] } } }, “serve”: { “builder”: “@angular-devkit/build-angular:dev-server”, “options”: { “browserTarget”: “genome-biology2018:build” }, “configurations”: { “production”: { “browserTarget”: “genome-biology2018:build:production” } } }, “extract-i18n”: { “builder”: “@angular-devkit/build-angular:extract-i18n”, “options”: { “browserTarget”: “genome-biology2018:build” } }, “test”: { “builder”: “@angular-devkit/build-angular:karma”, “options”: { “main”: “src/test.ts”, “karmaConfig”: “./karma.conf.js”, “polyfills”: “src/polyfills.ts”, “tsConfig”: “src/tsconfig.spec.json”, “scripts”: [], “styles”: [ “src/styles.css” ], “assets”: [ “src/assets”, “src/favicon.ico” ] } }, “lint”: { “builder”: “@angular-devkit/build-angular:tslint”, “options”: { “tsConfig”: [ “src/tsconfig.app.json”, “src/tsconfig.spec.json” ], “exclude”: [ “/node_modules/” ] } } } }, “genome-biology2018-e2e”: { “root”: “”, “sourceRoot”: “”, “projectType”: “application”, “architect”: { “e2e”: { “builder”: “@angular-devkit/build-angular:protractor”, “options”: { “protractorConfig”: “./protractor.conf.js”, “devServerTarget”: “genome-biology2018:serve” } }, “lint”: { “builder”: “@angular-devkit/build-angular:tslint”, “options”: { “tsConfig”: [ “e2e/tsconfig.e2e.json” ], “exclude”: [ “/node_modules/” ] } } } } }, “defaultProject”: “genome-biology2018”, “schematics”: { “@schematics/angular:component”: { “prefix”: “app”, “styleext”: “css” }, “@schematics/angular:directive”: { “prefix”: “app” } } }

0reactions
GlauberFcommented, Sep 12, 2019

Any news on this issue? I’m using Angular 8.X version

Angular CLI: 8.3.3
Node: 10.15.3
OS: linux x64
Angular: 9.0.0-next.5
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.803.3
@angular-devkit/build-angular      0.803.3
@angular-devkit/build-optimizer    0.803.3
@angular-devkit/build-webpack      0.803.3
@angular-devkit/core               8.3.3
@angular-devkit/schematics         8.3.3
@angular/cdk                       8.2.0
@angular/cli                       8.3.3
@angular/flex-layout               8.0.0-beta.26
@angular/material                  8.2.0
@angular/material-moment-adapter   8.2.0
@ngtools/webpack                   8.3.3
@schematics/angular                8.3.3
@schematics/update                 0.803.3
rxjs                               6.5.3
typescript                         3.5.3
webpack                            4.39.2

Captura de Tela_selecionar área_20190912142858

angular.json

{
    "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
    "version": 1,
    "newProjectRoot": "projects",
    "projects": {
        "vimbo": {
            "projectType": "application",
            "schematics": {
                "@schematics/angular:component": {
                    "style": "scss"
                }
            },
            "root": "",
            "sourceRoot": "src",
            "prefix": "app",
            "architect": {
                "build": {
                    "builder": "@angular-builders/custom-webpack:browser",
                    "options": {
                        "outputPath": "distPWA",
                        "index": "src/index.html",
                        "main": "src/main.ts",
                        "polyfills": "src/polyfills.ts",
                        "tsConfig": "tsconfig.app.json",
                        "customWebpackConfig": {
                            "path": "custom-webpack.config.js",
                            "replaceDuplicatePlugins": true
                        },
                        "assets": [
                            "src/favicon.ico",
                            "src/assets",
                            "src/manifest.webmanifest",
                            "src/manifest.webmanifest"
                        ],
                        "styles": ["src/styles.scss"],
                        "scripts": [
                            "src/assets/js/block-inspect-element-vimbo.js",
                            "src/assets/js/listening-postmesage.js"
                        ],
                        "showCircularDependencies": false
                    },
                    "configurations": {
                        "production": {
                            "fileReplacements": [
                                {
                                    "replace": "src/environments/environment.ts",
                                    "with": "src/environments/environment.prod.ts"
                                }
                            ],
                            "optimization": true,
                            "outputHashing": "all",
                            "sourceMap": false,
                            "extractCss": true,
                            "namedChunks": false,
                            "aot": true,
                            "extractLicenses": true,
                            "vendorChunk": false,
                            "buildOptimizer": true,
                            "budgets": [
                                {
                                    "type": "bundle",
                                    "name": "polyfills",
                                    "baseline": "150kb",
                                    "maximumWarning": "50kb",
                                    "maximumError": "100kb"
                                },
                                {
                                    "type": "bundle",
                                    "name": "styles",
                                    "baseline": "1300kb",
                                    "maximumWarning": "200kb",
                                    "maximumError": "400kb"
                                },
                                {
                                    "type": "bundle",
                                    "name": "main",
                                    "baseline": "1800kb",
                                    "maximumWarning": "150kb",
                                    "maximumError": "200kb"
                                },
                                {
                                    "type": "initial",
                                    "maximumWarning": "4mb",
                                    "maximumError": "6mb"
                                }
                            ],
                            "serviceWorker": true,
                            "ngswConfigPath": "ngsw-config.json"
                        },
                        "ec": {
                            "sourceMap": true,
                            "extractCss": true
                        },
                        "hmr": {
                            "fileReplacements": [
                                {
                                    "replace": "src/environments/environment.ts",
                                    "with": "src/environments/environment.hmr.ts"
                                }
                            ]
                        }
                    }
                },
                "serve": {
                    "builder": "@angular-builders/custom-webpack:dev-server",
                    "options": {
                        "browserTarget": "vimbo:build"
                    },
                    "configurations": {
                        "production": {
                            "browserTarget": "vimbo:build:production"
                        },
                        "hmr": {
                            "hmr": true,
                            "browserTarget": "vimbo:build:hmr"
                        },
                        "ec": {
                            "browserTarget": "vimbo:build:ec"
                        }
                    }
                },
                "extract-i18n": {
                    "builder": "@angular-devkit/build-angular:extract-i18n",
                    "options": {
                        "browserTarget": "vimbo:build"
                    }
                },
                "test": {
                    "builder": "@angular-devkit/build-angular:karma",
                    "options": {
                        "main": "src/test.ts",
                        "polyfills": "src/polyfills.ts",
                        "tsConfig": "tsconfig.spec.json",
                        "karmaConfig": "karma.conf.js",
                        "assets": [
                            "src/favicon.ico",
                            "src/assets",
                            "src/manifest.webmanifest",
                            "src/manifest.webmanifest"
                        ],
                        "styles": ["src/styles.scss"],
                        "scripts": []
                    }
                },
                "lint": {
                    "builder": "@angular-devkit/build-angular:tslint",
                    "options": {
                        "tsConfig": [
                            "tsconfig.app.json",
                            "tsconfig.spec.json",
                            "e2e/tsconfig.json"
                        ],
                        "exclude": [
                            "**/node_modules/**",
                            "**/src/app/fake-db/**/*",
                            "**/src/assets/angular-material-examples/**/*"
                        ]
                    }
                },
                "e2e": {
                    "builder": "@angular-devkit/build-angular:protractor",
                    "options": {
                        "protractorConfig": "e2e/protractor.conf.js",
                        "devServerTarget": "vimbo:serve"
                    },
                    "configurations": {
                        "production": {
                            "devServerTarget": "vimbo:serve:production"
                        }
                    }
                }
            }
        }
    },
    "defaultProject": "vimbo"
}
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 >
Angular CLI builders
This document explains how CLI builders integrate with the workspace configuration file, and shows how you can create your own builder. Find the...
Read more >
Angular CLI Behind the Scenes - Part One
Create a directory named node_modules underneath the current directory. The Javascript code that makes up the Angular CLI, along with all of its...
Read more >
gzipper angular - You.com | The AI Search Engine You Control
(make sure your current working directory is the same where package.json is located) ... how to enable gzip compression in angular cli for...
Read more >
Customizing Angular CLI build - Just Jeb
Learn how do this using custom webpack builder. ... In angular.json change the @angular-devkit/build-angular:browser builder to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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