Open
Description
Version: Deno 2+
Hello, after upgrading to Deno v2, our use of Buffer no longer works. We get the following error:
error: TS2576 [ERROR]: Property 'from' does not exist on type 'Buffer'. Did you mean to access the static member 'Buffer.from' instead?
Buffer.from(data, 'base64').toString('utf-8')
We are importing with
import { Buffer } from 'buffer';
{
"imports": {
"buffer": "node:buffer",
}
}
If also tried https://deno.land/std/io/buffer.ts
and @std/io/buffer