Skip to content

Type errors due to lack of types in bundled NPM package #11

@pmeller

Description

@pmeller

@datepicker-react/hooks or @datepicker-react/styled version
@datepicker-react/styled@2.0.2

Describe the bug
Running typechecking (e.g. tsc --noEmit) with library inluded in a project codebase causes type errors:

node_modules/@datepicker-react/styled/lib/components/DateSingleInput/DateSingleInput.d.ts:4:41 - error TS2307: Cannot find module '@datepicker-react/hooks/src'.

Problem is caused by importing @datepicker-react/hooks/src module that is available in the source code but not available in the bundled NPM package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions