Skip to content

@angular-devkit/build-angular:browser-esbuild - ngDevMode replaced with true #23627

Closed
@SebastianPodgajny

Description

@SebastianPodgajny

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

Yes, the previous version in which this bug was not present was: -

Description

It looks like ngDevMode is replaced with `true`

image

🔬 Minimal Reproduction

🔥 Exception or Error


chunk-IESJZ3T5.js:52739 TypeError: Cannot create property 'tView' on boolean 'true'
    at createTView (chunk-IESJZ3T5.js:20291:13)
    at ComponentFactory.create (chunk-IESJZ3T5.js:21260:23)
    at ApplicationRef.bootstrap (chunk-IESJZ3T5.js:27553:38)
    at chunk-IESJZ3T5.js:27379:60
    at Array.forEach ()
    at PlatformRef._moduleDoBootstrap (chunk-IESJZ3T5.js:27379:38)
    at chunk-IESJZ3T5.js:27366:16
chunk-IESJZ3T5.js:20291 Uncaught (in promise) TypeError: Cannot create property 'tView' on boolean 'true'
    at createTView (chunk-IESJZ3T5.js:20291:13)
    at ComponentFactory.create (chunk-IESJZ3T5.js:21260:23)
    at ApplicationRef.bootstrap (chunk-IESJZ3T5.js:27553:38)
    at chunk-IESJZ3T5.js:27379:60
    at Array.forEach ()
    at PlatformRef._moduleDoBootstrap (chunk-IESJZ3T5.js:27379:38)
    at chunk-IESJZ3T5.js:27366:16

🌍 Your Environment


Angular CLI: 14.1.0
Node: 16.16.0
Package Manager: yarn 1.21.1
OS: darwin x64

Angular: 14.1.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, language-service, platform-browser
... platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1401.0
@angular-devkit/build-angular   14.1.0
@angular-devkit/build-webpack   0.1401.0
@angular-devkit/core            14.1.0
@angular-devkit/schematics      14.1.0
@angular/benchpress             0.3.0
@ngtools/webpack                14.1.0
@schematics/angular             14.1.0
ng-packagr                      14.1.0
rxjs                            7.5.5
typescript                      4.7.4
webpack                         5.73.0

Anything else relevant?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions