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

ESM support #977

Open
btakita opened this issue Mar 1, 2023 · 3 comments · May be fixed by #978
Open

ESM support #977

btakita opened this issue Mar 1, 2023 · 3 comments · May be fixed by #978

Comments

@btakita
Copy link

btakita commented Mar 1, 2023

In a node.js environment, Papa parse only supports commonjs. I will create a PR to add ESM support.

btakita added a commit to btakita/PapaParse that referenced this issue Mar 1, 2023
@btakita btakita linked a pull request Mar 1, 2023 that will close this issue
btakita added a commit to btakita/PapaParse that referenced this issue Mar 1, 2023
btakita added a commit to btakita/PapaParse that referenced this issue Mar 1, 2023
btakita added a commit to btakita/PapaParse that referenced this issue Mar 1, 2023
btakita added a commit to btakita/PapaParse that referenced this issue Mar 1, 2023
btakita added a commit to btakita/PapaParse that referenced this issue Mar 1, 2023
btakita added a commit to btakita/PapaParse that referenced this issue Mar 1, 2023
btakita added a commit to btakita/PapaParse that referenced this issue Mar 1, 2023
@dandv
Copy link

dandv commented Mar 15, 2023

Would be great to add at least one example of using import/require. Currently there's no such example anywhere.

@troptropcontent

This comment was marked as off-topic.

@crfrolik
Copy link

crfrolik commented Mar 14, 2024

Is there an update on the progress of this? Using papaparse in a project with "type":"module" (via tsx) gives me this error:

import { parse, ParseResult } from 'papaparse';
         ^

SyntaxError: The requested module 'papaparse' does not provide an export named 'parse'

Oddly enough, this works:

import papaparse from 'papaparse';

const { parse } = papaparse;

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

Successfully merging a pull request may close this issue.

4 participants