-
Notifications
You must be signed in to change notification settings - Fork 166
Module not found: Error: Can't resolve 'stream' in node_modules\csv-parse\lib\es5 #302
Module not found: Error: Can't resolve 'stream' in node_modules\csv-parse\lib\es5 #302
Comments
You seem to be in a browser environnement. You need to use sth like webpack. |
I'm staring it by |
Try to use a tool like browserify |
Angular has a preconfigured build system that is not to be tampered with in most cases. If it won't work with the default builder then this package is practically unusable in Angular. |
I agree, just stumbled upon this issue as well. Such a good library that comes up in search results but it's practically unusable in Angular or anything that doesn't require custom webpack modifications, and the workaround of using browserify is just laughable, and sad. Any known alternatives? Edit: For future readers, I ended up using https://www.npmjs.com/package/csvtojson |
No wait! I made it worked for csv-stringify. Give me an hour and I will publish a working version with a demo. |
I just published version v4.15.2, you can have a look at this demo. It uses the HTML |
Another issue-reply mentioned to use es5 - that did not work Assuming
Angular TypeScript may be better to use one of the many angular csv packages around |
Adding here as a faster workaround to get up and running from a search engine search -
It just works. 600k weekly downloads. Simple single dependency. Seems extremely fast. Decent intellisense usage with documented comments and the documentation first page overview easy to use. Would have preferred to use something well-supported like May come back to |
You can also help by providing a simple angular repository reproducing the problem, from there, I can work on it to better understand what the problem is and fix it. |
After update from Angular 5 to 6, I have this compile error.
ERROR in ./node_modules/csv-parse/lib/es5/index.js Module not found: Error: Can't resolve 'stream' in '<projectPath>\node_modules\csv-parse\lib\es5'
Package version 4.14.0
What am I doing wrong? Please help
The text was updated successfully, but these errors were encountered: