Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDE error and astro check failure in astro integration: IntrinsicAttributes & Renderer2 #1522

Open
filloax opened this issue Dec 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@filloax
Copy link

filloax commented Dec 24, 2024

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
@filloax filloax added the bug Something isn't working label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant