Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with npm Buffer dependency in DecodeStream.js #53

Open
joelsax opened this issue Nov 2, 2022 · 1 comment
Open

Issue with npm Buffer dependency in DecodeStream.js #53

joelsax opened this issue Nov 2, 2022 · 1 comment

Comments

@joelsax
Copy link

joelsax commented Nov 2, 2022

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
Copy link

andrewmoore-nz commented Apr 20, 2023

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants