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

Error when importing module #19

Closed
brad426 opened this issue Aug 26, 2022 · 1 comment
Closed

Error when importing module #19

brad426 opened this issue Aug 26, 2022 · 1 comment

Comments

@brad426
Copy link

brad426 commented Aug 26, 2022

When I import this library into my browser javascript using:
import neatCsv from 'neat-csv'

I get the following errors:

Uncaught Error: Module "stream" has been externalized for browser compatibility. Cannot access "stream.Transform" in client code.
    at Object.get (browser-external:stream:9:13)
    at ../../node_modules/csv-parser/index.js (index.js:1:9)
    at __require (chunk-HUBM7RA2.js?v=169fedf8:8:50)
    at index.js:5:23
@sindresorhus
Copy link
Owner

This package is meant for Node.js. You are of course free to use it in the browser, but I cannot provide support for various build tools. This case seems like a problem with your build tool.

@sindresorhus sindresorhus closed this as not planned Won't fix, can't repro, duplicate, stale Aug 26, 2022
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