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

🐞 - Error after migration to 4.0 : Property 'items' in type 'TuiDataListGroupWrapperComponent<T>' is not assignable to the same property in base type #8458

Closed
5 of 9 tasks
hatsantos opened this issue Aug 11, 2024 · 0 comments · Fixed by #8461
Assignees

Comments

@hatsantos
Copy link

hatsantos commented Aug 11, 2024

Playground Link

No response

Description

I am trying to migrate an application that uses Taiga UI 3.89 to version 4.0.

After running the migrations and resolving the //TODO cases that were added to the code, there are still some errors that seem to come internally from the framework.

When building a production build I get this error:

X [ERROR] TS2416: Property 'items' in type "TuiDataListGroupWrapperComponent<T>" is not assignable to the same property in base type "TuiDataListWrapperComponent<T>".
  Type "readonly T[][]" is not assignable to type "readonly T[]".
    Type "T[]" is not assignable to type "T".
      "T" could be instantiated with an arbitrary type which could be unrelated to "T[]". [plugin angular-compiler]

node_modules/.pnpm/@taiga-ui+kit@4.0.0_guvll333atvit5skvvaejqvrwe/node_modules/@taiga-ui/kit/components/data-list-wrapper/data-list-group-wrapper.component.d.ts:4:4:
      4 │     items: readonly T[][] | null;

image

Angular version

18.1.4

Taiga UI version

4.0

Which browsers have you used?

  • Chrome
  • Firefox
  • Safari
  • Edge

Which operating systems have you used?

  • macOS
  • Windows
  • Linux
  • iOS
  • Android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants