-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When global Node.js objects are referenced, Deno should error out with a friendly error message #17494
Comments
These should probably be LSP FixIts as well. |
I think this may now be obsolete, as deno appears to create an import for node:process automatically |
I'm not sure if this belongs here, but I find it annoying that Deno LSP always highlights the process object as a warning, even with the lint rule |
@dmint789 could you please open a new issue for that? This seems like a bug |
Add info/hint for terminal errors related to Node.js globals: - __filename - __dirname - Buffer - global - setImmediate - clearImmediate Closes #17494
Extracted from #17475
Objects that will be handled:
,process
global
,Buffer
,setImmediate
,clearImmediate
,module
,exports
.For
global
the hint in the error should beglobalThis.global = globalThis
.The text was updated successfully, but these errors were encountered: