Skip to content

Nextjs app directory not working with react-splide #76

@adityanrlhmd

Description

@adityanrlhmd

Checks

Version

0.7.12

Description

When i build next js 14

Type error: Could not find a declaration file for module '@splidejs/react-splide'. '/Users/aditya/Desktop/Office/react/b2b-web/node_modules/@splidejs/react-splide/dist/js/react-splide.esm.js' implicitly has an 'any' type.
There are types at '/Users/aditya/Desktop/Office/react/b2b-web/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.

Reproduction Link

No response

Steps to Reproduce

used in client components Next 14

Expected Behaviour

Work with nextjs 14 to build prod

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