I have been experiencing this for some days now. As I start working in my Vs Code, the terminal server, will suddenly stop working, showing the error message attached in the screenshot.
Please does anyone have any idea how I can fix this.
RangeError: Array buffer allocation failed
at new ArrayBuffer (<anonymous>)
at new Uint8Array (<anonymous>)
at new FastBuffer (node:internal/buffer:959:5)
at createUnsafeBuffer (node:internal/buffer:1062:12)
at Function.allocUnsafeSlow (node:buffer:385:10)
at read (C:\Users\USER\Desktop\food-delivery\node_modules\webpack\lib\serialization\FileMiddleware.js:597:32)
at C:\Users\USER\Desktop\food-delivery\node_modules\webpack\lib\serialization\FileMiddleware.js:657:7
at C:\Users\USER\Desktop\food-delivery\node_modules\graceful-fs\graceful-fs.js:362:16
at FSReqCallback.oncomplete (node:fs:188:23)
PS C:\Users\USER\Desktop\food-delivery>
The Vs Code Screenshot below
It might be related to your node version architecture.
Check your version running the command node -p "process.arch"
In my case, I had the 32 bits version. Installing node 64 bits solved the issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With