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

6.0 not working in frontend anymore #11

Closed
ghost opened this issue Dec 12, 2020 · 3 comments
Closed

6.0 not working in frontend anymore #11

ghost opened this issue Dec 12, 2020 · 3 comments

Comments

@ghost
Copy link

ghost commented Dec 12, 2020

Hi,

Version 5 worked great in my frontend app (though I haven't tested the csv feature for some time). With 6.0 I got the following, hard to trace, error just by importing the neat-csv module:

TypeError: The "original" argument must be of type Function
    promisify util.js:602
    <anonymous> index.js:7
    js vendor.js:5746
    __webpack_require__ app.js:854
    fn app.js:151
    <anonymous> index.js:6
    <anonymous> index.js:22
    js vendor.js:5722
    __webpack_require__ app.js:854
    fn app.js:151
    <anonymous> index.js:7
    node_modules index.js:23
    __webpack_require__ app.js:854
    fn app.js:151

Downgraded to 5.2 again and the error disappeared.
Is this package now node only?

@sindresorhus
Copy link
Owner

This package was always Node.js only. You can generally make Node.js modules work in the browser using shims, but there's no guarantee that the shims are not buggy or incomplete. You'll need at least a shim for the util.promisify method and stream.pipeline.

@ghost
Copy link
Author

ghost commented Dec 12, 2020

Alright, thanks for explaining. Will just use csv-parser then.

@rodvlopes
Copy link

I downgraded to 5.2 and is working again.

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

2 participants