I'm using the microphone-stream package which in turn uses this package
Consuming this API from the browser throws the following error
Error
Uncaught ReferenceError: process is not defined
at maybeReadMore (_stream_readable.js:561:1)
at addChunk (_stream_readable.js:306:1)
at readableAddChunk (_stream_readable.js:280:1)
at Readable.push (_stream_readable.js:241:1)
at ScriptProcessorNode.recorderProcess (microphone-stream.js:108:1)
The error seems to be coming from the streamreadable.js file line561
`process.nextTick(maybeReadMore, stream, state);`
I believe process.nextTick is a NodeJS specific API and isn't available on the browser. setTimeout should be used instead
Describe the bug
I'm using the microphone-stream package which in turn uses this package
Consuming this API from the browser throws the following error
Error
The error seems to be coming from the streamreadable.js file line561 `process.nextTick(maybeReadMore, stream, state);` I believe process.nextTick is a NodeJS specific API and isn't available on the browser. setTimeout should be used instead
Screenshots
Your environment
OS: macOS Monterey (12.3.1) Node: 16.15.1
Version number
microphone-stream@6.0.1
Is the issue in the browser/Node.js?
Browser
Details of the browser/Node.js version
Chrome: 103.0.5060.134