Skip to content

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

Description

@raviverma2791747

Checks

Version

0.7.0

Description

Encountering this error when importing react splide module in NextJs 14
Could not find a declaration file for module '@splidejs/react-splide'. 'f:/lavange/lavange_ecommerce/lavange_ecommerce_client/node_modules/@splidejs/react-splide/dist/js/react-splide.esm.js' implicitly has an 'any' type. There are types at 'f:/lavange/lavange_ecommerce/lavange_ecommerce_client/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. @AllCategory.tsx:6:37

Reproduction Link

No response

Steps to Reproduce

  1. Initialize a new latest next project
  2. Install react-splide
  3. Import react-splide module
    ...

Expected Behaviour

The module should be imported without any errors. The type declaration should be automatically found.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions