node-csv icon indicating copy to clipboard operation
node-csv copied to clipboard

Angular 8 ,inherits_browser.js:5 Uncaught TypeError: Cannot read property 'prototype' of undefined

Open bbhatkar opened this issue 5 years ago • 1 comments

Hi I am have imported csv in Angular component

import * as csv from 'csv';

inherits_browser.js:5 Uncaught TypeError: Cannot read property 'prototype' of undefined at Object.inherits (inherits_browser.js:5) at Object../node_modules/csv-generate/lib/index.js (index.js:156) at webpack_require (bootstrap:84) at Object../node_modules/csv/lib/index.js (index.js:5) at webpack_require (bootstrap:84) at Module../src/app/components/listeditor/listeditor-toolbar/listeditor-toolbar.component.ts (main.js?v=NSVERSION:45613) at webpack_require (bootstrap:84) at Module../src/app/components/listeditor/base-listeditor.component.ts (main.js?v=NSVERSION:45371) at webpack_require (bootstrap:84) at Module../src/app/components/listeditor/cards-listeditor/cards-listeditor.component.ts (main.js?v=NSVERSION:45477)

bbhatkar avatar Jun 26 '20 16:06 bbhatkar

You shall use the browser version available in the ./lib/es5 folder.

wdavidw avatar Jun 29 '20 12:06 wdavidw