Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
5 of 6 tasks
mayur1301 opened this issue Jul 3, 2024 · 0 comments
Open
5 of 6 tasks

Comments

@mayur1301
Copy link

mayur1301 commented Jul 3, 2024

Issue Check list

  • Agree to the Code of Conduct
  • Read the README
  • You are using React 16.8.0+
  • 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:

  • 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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant