Error message appears when running the unit test of a component which is using devExtreme-angular2 controls. Project is using webpack build and unit tests are executed using npm test command.
Please find the detailed error log
user.component.ts
脳 test add new user
PhantomJS 2.1.1 (Windows 8 0.0.0)
Error: Template parse errors:
Can't bind to 'value' since it isn't a known property of 'dx-text-box'.
1. If 'dx-text-box' is an Angular component and it has 'value' input, then verify that it is part of this module.
2. If 'dx-text-box' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message.
("-12">
][(value)]="user.name">
"): UserComponent@17:42
'dx-text-box' is not a known element:
1. If 'dx-text-box' is an Angular component, then verify that it is part of this module.
2. If 'dx-text-box' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message. ("
Most helpful comment
Issue resolved after importing 'DevExtremeModule' as given below.
beforeEach(() => {
TestBed.configureTestingModule(
{
declarations: [TestComponent],
imports: [DevExtremeModule],
So closing the issue