Bug? Cannot combine @Input decorators with query decorators
See original GitHub issueHi,
im using your lib version 10.1.2 with angular 9.1.2 in combination with the Syncfusion angular framework.
I’m getting the following error when I run my tests: `
Error: Cannot combine @Input decorators with query decorators
at http://localhost:9876/_karma_webpack_/D:/Work/Java
`
Code looks like follows:
describe('XComponent', () => {
let component: XComponent;
let fixture: MockedComponentFixture<XComponent>;
beforeEach(() => MockBuilder(XComponent, XModule)
.provide({provide: ControlContainer, useValue: fgd}),
);
beforeEach(() => {
fixture = MockRender(XComponent);
component = fixture.point.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
expect(component.controlContainer).toBeDefined();
});
});
I’m not sure if this is caused by the mock framework or by the syncfusion library. Running the project works fine; even as building the project. This just happens when running the tests.
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
angular - Cannot combine @Input decorators with query ...
The problem is that somewhere in your application you're using the @Input decorator together with one of the query decorators ...
Read more >ERROR in Cannot combine @Input decorators with query ...
Based on the error message, it looks like @input() and @ContentChild decorators are used on the same field in a Component class. This...
Read more >Cannot combine @Input decorators with query decorators
Hi, · i'm upgrading to Angular 9. Almost everything works excepts for Karma tests in my SearchModule wich uses the GridModule of Syncfusion....
Read more >angular/angular-cli - Input - Gitter
Hi, I updated to v8 and the project is building fine. But when I enable Ivy, it shows this error: "Cannot combine @Input...
Read more >cannot combine @input decorators with query decorators ng ...
error ng1006 : two incompatible decorators on class. Decorators. A Decorator is a special kind of declaration that can be attached to a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Works like a charm!
A new version has been released. Thanks for the report.