mirror of
https://github.com/denoland/deno.git
synced 2025-02-24 06:02:18 -05:00

Add info/hint for terminal errors related to Node.js globals: - __filename - __dirname - Buffer - global - setImmediate - clearImmediate Closes https://github.com/denoland/deno/issues/17494
7 lines
247 B
Text
7 lines
247 B
Text
error: Uncaught (in promise) ReferenceError: Buffer is not defined
|
|
Buffer;
|
|
^
|
|
at [WILDCARD]buffer.js:1:1
|
|
|
|
info: Buffer is not available in the global scope in Deno.
|
|
hint: Import it explicitly with import { Buffer } from "node:buffer";.
|