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

Module not found: Error: Can't resolve 'buffer' #213

Open
910022916 opened this issue Apr 4, 2024 · 2 comments
Open

Module not found: Error: Can't resolve 'buffer' #213

910022916 opened this issue Apr 4, 2024 · 2 comments

Comments

@910022916
Copy link

In angular project not used,console:./node_modules/safe-buffer/index.js:3:13-30 - Error: Module not found: Error: Can't resolve 'buffer' in 'D:\100dev\ustudy\ustudy-tools\node_modules\safe-buffer'

Please tell me the specific usage method?

@liuyib
Copy link

liuyib commented Jun 4, 2024

@910022916 The follow code can helps you:

import buffer from 'buffer';

window.Buffer = buffer.Buffer;

@BrSeal
Copy link

BrSeal commented Jul 18, 2024

This workaround solved problem for me

npm install 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

3 participants