rajaramtt / ng7-dynamic-breadcrumb

Angular 10 Dynamic Breadcrumbs
MIT License
42 stars 31 forks source link

Error on ng test #14

Closed chicojunior closed 3 years ago

chicojunior commented 4 years ago

I'm having this error: Cannot read property 'pipe' of undefined when I run the command ng test. I'm using Angular 8.

Follows the full error: TypeError: Cannot read property 'pipe' of undefined

error properties: Object({ ngDebugContext: DebugContext_({ view: Object({ def: Object({ factory: Function, nodeFlags: 33669121, rootNodeFlags: 1, nodeMatchedQueries: 0, flags: 0, nodes: [ Object({ nodeIndex: 0, parent: null, renderParent: null, bindingIndex: 0, outputIndex: 0, checkIndex: 0, flags: 1, childFlags: 33669121, directChildFlags: 33554433, childMatchedQueries: 0, matchedQueries: Object({ }), matchedQueryIds: 0, references: Object({ }), ngContentIndex: null, childCount: 2, bindings: [ ], bindingFlags: 0, outputs: [ ], element: Object({ ns: '', name: 'section', attrs: [ ], template: null, componentProvider: null, componentView: null, componentRendererType: null, publicProviders: null({ }), allProviders: null({ }), handleEvent: Function }), provider: null, text: null, query: null, ngContent: null }), Object({ nodeIndex: 1, parent: Object({ nodeIndex: 0, parent: null, renderParent: null, bindingIndex: 0, outputIndex: 0, checkIndex: 0, flags: 1, childFlags: 33669121, directChildFlags: 3 ... at at Ng7MatBreadcrumbComponent.breadCrumbData (http://localhost:9876/_karma_webpack_/node_modules/ng7-mat-breadcrumb/fesm2015/ng7-mat-breadcrumb.js:90:1) at new Ng7MatBreadcrumbComponent (http://localhost:9876/_karma_webpack_/node_modules/ng7-mat-breadcrumb/fesm2015/ng7-mat-breadcrumb.js:51:1) at createClass (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/fesm2015/core.js:31991:1) at createDirectiveInstance (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/fesm2015/core.js:31807:1) at createViewNodes (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/fesm2015/core.js:44210:1) at callViewAction (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/fesm2015/core.js:44660:1) at execComponentViewsAction (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/fesm2015/core.js:44565:1) at createViewNodes (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/fesm2015/core.js:44239:1) at createRootView (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/fesm2015/core.js:44082:1) at callWithDebugContext (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/fesm2015/core.js:45632:1)