dotenv-run icon indicating copy to clipboard operation
dotenv-run copied to clipboard

Material is not compatible with this builder

Open luismtapiab opened this issue 8 months ago • 4 comments

I have been using this builder fine until a project in wich my team is using Material crashed when changing the builder.

There was a recomendation in the cli to stay with the standard builder. Apparently it's a known issue with alternative builders. We're now back to @angular-devkit/build-angular:application

Should I address here to raise the awareness or should I go to the Material Angular repo?

luismtapiab avatar May 06 '25 02:05 luismtapiab

Hmm, what version of Angular material does the builder crashes with please?

chihab avatar May 09 '25 09:05 chihab

@angular/[email protected]

luismtapiab avatar Jun 18 '25 14:06 luismtapiab

We were looking for reading a .env file with sensible keys. I looked around and custom-webpack builders (they are extended from standard builders) work for Material with a few more steps to have the environment variables loaded. I don't know it it's relevant for you, but if anyone is both using material and trying to read an .env file that guide is useful.

luismtapiab avatar Jun 18 '25 15:06 luismtapiab

Hey, I am not very familiar with Angular Material, I tried using it in the project and I have no build issues.

However I notived that rather than displaying this (using the native angular builder): Image

I see this with ngx-env builder: Image

Is this the kind of issues you're having?

Note: beware that custom-webpack is using webpack builder under the hood which Angular has shifted away from using as its default bundler and is not recommended.

chihab avatar Jul 17 '25 08:07 chihab