IDE error and `astro check` failure in astro integration: IntrinsicAttributes & Renderer2
Opened this issue · 0 comments
filloax commented
Please provide the environment you discovered this bug in.
Astro + AnalogJS
Which area/package is the issue in?
astro-angular
Description
I'm using my component like this:
<SessionsIndexComponent files={files} baseUrl={url} client:load />
With the class defined like this:
export class SessionsIndexComponent {
@Input() files: any[] = [];
@Input() baseUrl: string = "";
but I get this error, both in the IDE and when running astro check
(translated):
Type '{ files: Record<string, any>[]; baseUrl: string; "client:load": true; }' is not assignable to type 'IntrinsicAttributes & Renderer2'.
Property 'files' does not exist on type 'IntrinsicAttributes & Renderer2'.
21 <SessionsIndexComponent files={files} baseUrl={url} client:load />
~~~~~
How can this be fixed?
Please provide the exception or error you saw
Type '{ files: Record<string, any>[]; baseUrl: string; "client:load": true; }' is not assignable to type 'IntrinsicAttributes & Renderer2'.
Property 'files' does not exist on type 'IntrinsicAttributes & Renderer2'.
21 <SessionsIndexComponent files={files} baseUrl={url} client:load />
~~~~~
### Other information
_No response_
### I would be willing to submit a PR to fix this issue
- [ ] Yes
- [X] No