Issue with npm Buffer dependency in DecodeStream.js
Opened this issue · 1 comments
joelsax commented
I have the restructure 2.0.0 package as part of my package.json file. When I attempt to run my app, I get the error below. I am creating a React app using Typescript and Ionic. How can I fix a dependency problem like this which is inside the node_modules folder itself? In package.json I have restructure set as version ^2.0.0 but I have also tried ^3.0.0 with the same results.
Uncaught ReferenceError: Buffer is not defined
at ./node_modules/restructure/src/DecodeStream.js
andrewmoore-nz commented
@joelsax Did you get anywhere with figuring out a solution to this? I am hitting this issue trying to use pdfkit
and am currently dead in the water as soon as I try and import that module in my code. Unsure of how best to proceed here.