-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
area: @angular-devkit/build-angulardevkit/build-angular:karmafreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity2: inconvenienttype: bug/fix
Milestone

Description
Versions
Angular CLI: 1.6.1
Node: 8.9.1
OS: win32 x64
Angular: 5.1.1
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
@angular/cdk: 5.0.1
@angular/cli: 1.6.1
@angular/flex-layout: 2.0.0-beta.10-4905443
@angular/material-moment-adapter: 5.0.1
@angular/material: 5.0.1
@angular-devkit/build-optimizer: 0.0.36
@angular-devkit/core: 0.0.22
@angular-devkit/schematics: 0.0.42
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.1
@schematics/angular: 0.1.11
@schematics/schematics: 0.0.11
typescript: 2.4.2
webpack: 3.10.0
Repro steps
- Step 1 Create a new project
- Step 2 add some properties to the
karma.conf.js
file (see which ones in the other details part)
Observed behavior
When I disable logs from the browser into karma, karma just ignores it and display them anyway. I believe this is because its configuration is overriden ?
Desired behavior
I would like to not see the browser logs into my console when I ask not to see them
Mention any other details that might be useful (optional)
In my karma.conf.js
I added those properties :
client: {
captureConsole: false,
clearContext: false
},
logLevel: config.LOG_DISABLE,
browserConsoleLogOptions: {
level: 'disable',
terminal: false
},
But no matter what I do, my console output looks like this (sample) :
Error: Template parse errors:
'mat-dialog-content' is not a known element:
1. If 'mat-dialog-content' is an Angular component, then verify that it is part of this module.
2. If 'mat-dialog-content' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("<h3 mat-dialg-title style="margin: 12px 0">Confirmation d'action</h3>
[ERROR ->]<mat-dialog-content>
<div fxLayout="row" fxLayoutAlign="start center" fxFlex style="margin: 24px 0""): ng:///DynamicTestModule/ConfirmationDialogComponent.html@1:0
Can't bind to 'mat-dialog-close' since it isn't a known property of 'button'. (" fxFlex fxLayout="row" fxLayoutAlign="end center" fxLayoutGap="12px">
<button mat-raised-button [ERROR ->][mat-dialog-close]="false">Annuler</button>
<button mat-raised-button color="primary" [mat-dialog"): ng:///DynamicTestModule/ConfirmationDialogComponent.html@8:30
Can't bind to 'mat-dialog-close' since it isn't a known property of 'button'. ("ed-button [mat-dialog-close]="false">Annuler</button>
<button mat-raised-button color="primary" [ERROR ->][mat-dialog-close]="true">Confirmer</button></div></mat-dialog-actions>"): ng:///DynamicTestModule/ConfirmationDialogComponent.html@9:46
'mat-dialog-actions' is not a known element:
1. If 'mat-dialog-actions' is an Angular component, then verify that it is part of this module.
2. If 'mat-dialog-actions' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
Metadata
Metadata
Assignees
Labels
area: @angular-devkit/build-angulardevkit/build-angular:karmafreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity2: inconvenienttype: bug/fix