Why would ng build -c dev display errors when ng build runs fine?

184 views Asked by At

Running Angular on my local PC and just running a basic ng build command.

When I run ng build everything works as expected.

When I try to run using my environment.dev.ts file by running ng build -c dev I get countless errors. Are these true errors? If so why do they only show in this instance?

Example of some of these errors:

ERROR in src\app\main\header-dialog\header-dialog.component.html(66,21): : Property 'primary' does not exist on type 'HeaderDialogComponent'.
src\app\main\header-dialog\header-dialog.component.html(67,21): : Property 'determinate' does not exist on type 'HeaderDialogComponent'.
src\app\main\header-dialog\header-dialog.component.html(168,19): : Property 'primary' does not exist on type 'HeaderDialogComponent'.
src\app\main\header-dialog\header-dialog.component.html(169,19): : Property 'determinate' does not exist on type 'HeaderDialogComponent'.
src\app\main\header-dialog\header-dialog.component.html(246,19): : Property 'primary' does not exist on type 'HeaderDialogComponent'.
src\app\main\header-dialog\header-dialog.component.html(247,19): : Property 'determinate' does not exist on type 'HeaderDialogComponent'.
node_modules\@ng-bootstrap\ng-bootstrap\datepicker\datepicker-navigation.d.ts.NgbDatepickerNavigation.html(3,67): : An expression of type 'void' cannot be tested for truthiness
node_modules\@ng-bootstrap\ng-bootstrap\datepicker\datepicker-navigation.d.ts.NgbDatepickerNavigation.html(25,67): : An expression of type 'void' cannot be tested for truthiness

0

There are 0 answers