mirror of
https://github.com/denoland/deno.git
synced 2025-02-18 19:33:00 -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
223 B
Text
7 lines
223 B
Text
error: Uncaught (in promise) ReferenceError: __filename is not defined
|
|
__filename;
|
|
^
|
|
at [WILDCARD]filename.js:1:1
|
|
|
|
info: __filename global is not available in ES modules.
|
|
hint: Use import.meta.filename instead.
|