Skip to content

TS7016: Could not find a declaration file for module '@splidejs/react-splide' #1174

@Virtute90

Description

@Virtute90

Esiste già una discussione sul tema che ti interessa, o su un tema simile?

  • Ho verificato e non esiste

Versione della libreria

5.7.1

Cosa

Facendo il controllo dei types con l'ultima versione della libreria, l'engine restituisce questo errore:

node_modules/design-react-kit/dist/types/Carousel/Carousel.d.ts:1:29 - error TS7016: Could not find a declaration file for module '@splidejs/react-splide'. '/var/www/html/node_modules/@splidejs/react-splide/dist/js/react-splide.esm.js' implicitly has an 'any' type.
  There are types at '/var/www/html/node_modules/@splidejs/react-splide/dist/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@splidejs/react-splide' library may need to update its package.json or typings.

1 import { SplideProps } from '@splidejs/react-splide';
                              ~~~~~~~~~~~~~~~~~~~~~~~~


Found 1 error in node_modules/design-react-kit/dist/types/Carousel/Carousel.d.ts:1

Il problema è legato a questa issue Splidejs/react-splide#84 e a questa PR Splidejs/react-splide#85

Perché

Non sono riuscito a trovare un workaroung per il momento

Contesto

No response

Altro

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions