question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug? Cannot combine @Input decorators with query decorators

See original GitHub issue

Hi,

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:closed
  • Created 3 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
appienvanveencommented, Sep 8, 2020

Works like a charm!

0reactions
satanTimecommented, Sep 13, 2020

A new version has been released. Thanks for the report.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found