Skip to content

#543 causes a typescript issue when building with the latest version of rc-pagination #547

Closed
@heath-freenome

Description

@heath-freenome

The change in #543 is causing a typescript issue when I am attempting to build with the latest version of rc-pagination
I'm seeing:

> tsc -b

node_modules/rc-pagination/lib/index.d.ts:2:1 - error TS1383: Only named exports may use 'export type'.

2 export type * from './interface';
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you change this to export * from ./interfaceI believe things will do what you want and avoids this typescript error. This works fine becauseinterface.ts` is just a collection of types

Activity

changed the title [-]#543 causes a typescript issue when I am attempting to build with the latest version of `rc-pagination`[/-] [+]#543 causes a typescript issue when building with the latest version of `rc-pagination`[/+] on Dec 12, 2023
afc163

afc163 commented on Dec 13, 2023

@afc163
Member

Could you provide a reproduce codesandbox?

heath-freenome

heath-freenome commented on Dec 13, 2023

@heath-freenome
Author

@afc163 Would a link to a failing repo branch work? I discovered this while attempting to upgrade the packages on the library I'm maintaining in https://github.com/rjsf-team/react-jsonschema-form

Here's the PR with the failing build: rjsf-team/react-jsonschema-form#4006

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @afc163@heath-freenome

      Issue actions

        #543 causes a typescript issue when building with the latest version of `rc-pagination` · Issue #547 · react-component/pagination