react-data-table-component icon indicating copy to clipboard operation
react-data-table-component copied to clipboard

Unable to Export Types from "react-data-table-component/dist/src/DataTable/types"

Open mayur1301 opened this issue 1 year ago • 0 comments

Issue Check list

  • [x] Agree to the Code of Conduct
  • [x] Read the README
  • [x] You are using React 16.8.0+
  • [x] You installed styled-components

Description

I am experiencing an issue while trying to export types from the react-data-table-component library. I have created a component using the package and I am trying to export the types from the "react-data-table-component/dist/src/DataTable/types" so that anyone using the component can access these types.

Steps to Reproduce:

  1. Attempt to export types using the following statement:

    export * from "react-data-table-component/dist/src/DataTable/types";
    

    OR

    export *  as DataTableTypes from "react-data-table-component/dist/src/DataTable/types";
    
    • This results in a "module not found" error.

Expected Behavior:

  • [ ] Successful export of all types from the specified path in the react-data-table-component library.

Actual Behavior:

  • [x] Encountering a "module not found" error when trying to export from the specified path.

Request for Assistance:

I am seeking guidance on the correct approach to export types from the react-data-table-component library, specifically from the path "react-data-table-component/dist/src/DataTable/types".

Versions (please complete the following information)

  • React (RDT requires 16.8.0+)
  • Styled Components
  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari, firefox]

mayur1301 avatar Jul 03 '24 17:07 mayur1301