firebase-tools icon indicating copy to clipboard operation
firebase-tools copied to clipboard

Firebase deployment not working when using @ngx-env/builder

Open devomr opened this issue 1 year ago • 0 comments

[REQUIRED] Environment info

firebase-tools: 13.3.0

Platform: Windows

[REQUIRED] Test case

Angular SSR project using @ngx-env/builder and Firebase Hosting.

angular.json firebase.json package.json

[REQUIRED] Steps to reproduce

  1. Create Angular SSR project (version 17.1.0)
  2. Add @ngx-env/builder (version 17.1.3) by running the command ng add @ngx-env/builder
  3. Configure Firebase Hosting for detected codebase (Angular)

[REQUIRED] Expected behavior

Deploy Angular application to Firebase Hosting.

[REQUIRED] Actual behavior

The deployment not working and the following error is displayed @ngx-env/builder:application (test:build:production) is not a recognized builder. Please check your angular.json

Hope I provided all the necessary details. Note: This issue started with firebase-tools version 13.0.0. I had a look on the source code and from that version was introduced a check that throws the error message which I encounter.

Really appreciate any help how can I fix this problem.

devomr avatar Feb 16 '24 20:02 devomr