Buffer is deprecated in Node 10 #48

Closed
opened 2025-08-09 17:14:48 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @ryanbrandenburg on 6/4/2018

It seems that in 2 places in NodeServices we're still using the constructor for Buffer, which was deprecated in node 10. This causes errors like we see here. We should do as the exception suggests and use one of alloc, allocUnsafe or from, as appropriate.

An FYI to @PatrickKunz who files aspnet/templating#550.

*Originally created by @ryanbrandenburg on 6/4/2018* It seems that in 2 places in NodeServices we're still using the constructor for Buffer, which was [deprecated](https://nodesource.com/blog/understanding-the-buffer-deprecation-in-node-js-10/) in node 10. This causes errors like we see [here](https://github.com/aspnet/templating/issues/550). We should do as the exception suggests and use one of `alloc`, `allocUnsafe` or `from`, as appropriate. An FYI to @PatrickKunz who files aspnet/templating#550.
fergalmoran added the bugPRI: 1 - Required3 - Done labels 2025-08-09 17:14:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#48
No description provided.