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

Buffer is not defined #62

Open
A1tura opened this issue Sep 20, 2024 · 4 comments
Open

Buffer is not defined #62

A1tura opened this issue Sep 20, 2024 · 4 comments

Comments

@A1tura
Copy link

A1tura commented Sep 20, 2024

I get that error: "Buffer is not defined"
I already added require("buffer"); but it's still don't work

@ddtch
Copy link

ddtch commented Sep 25, 2024

what builder do you use for your app? If its vite I recommend use vite-plugin-node-polyfills to make it work. aslo try to google node polyfills for web apps

@A1tura
Copy link
Author

A1tura commented Sep 25, 2024

ok, I will try, ty for help.

@iftekharalammithu
Copy link

what builder do you use for your app? If its vite I recommend use vite-plugin-node-polyfills to make it work. aslo try to google node polyfills for web apps

Thanks Buddy You save my day ❤

@robpal
Copy link

robpal commented Oct 26, 2024

if you are using webpack put this into webpack.config.js to plugins
also npm i --save buffer

new webpack.ProvidePlugin({
    Buffer: ['buffer', 'Buffer'],
}),

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

4 participants