Angular 8 ,inherits_browser.js:5 Uncaught TypeError: Cannot read property 'prototype' of undefined
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 4.3k
- Forks
- 299
- Avg merge
- 16h 19m
- Merged PRs (30d)
- 1
Description
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)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Angular 8 import using the stack-trace entry points in node_modules/csv/lib/index.js, node_modules/csv-generate/lib/index.js, and inherits_browser.js. Determine why the csv import reaches the undefined prototype, then verify that the Angular component can import the package without the runtime exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, javascript, nodejs
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100