node-graceful-fs: ReadStream: Cannot read property 'prototype' of undefined
I am getting this issue:
https://github.com/isaacs/node-graceful-fs/issues/70
On these lines:
https://github.com/isaacs/node-graceful-fs/blob/master/graceful-fs.js#L165-L166
var fs$ReadStream = fs.ReadStream // ReadStream is undefined!
ReadStream.prototype = Object.create(fs$ReadStream.prototype)
But I am NOT on Meteor. I am using Angular2
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 27
- Comments: 22
I have the same problem with create-react-app
I have the same issue with a clean project that i created with create-react-app. As i use chokidar in the App component i get this error on yarn start.
i have the same problem with react and webpack
Hi all, i have fixed my issue. The problem was, that i have created an electron app in that i used react. If you want to use chokidar in this constelation, you must import ist with the following code:
const chokidar = window.require('chokidar');
Maybe anyone has the same constelation and problem.
same here,using webpack2 & react
Here is how I fixed it:
this works because in the docs there are create methods for creating streams.