-
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
fix(ext/node): set process.env as own property #27891
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kt3k
approved these changes
Jan 31, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Nice!
I think pretty much all of the properties should be own properties:
|
kt3k
reviewed
Jan 31, 2025
Co-authored-by: Yoshiya Hinosawa <[email protected]> Signed-off-by: Divy Srivastava <[email protected]>
Thanks for this fix! I was banging my head against trying to get the firebase-admin npm package to work and was getting this same error until I pulled the canary build with this fix. 🙇♂️ |
2 tasks
nyannyacha
added a commit
to nyannyacha/edge-runtime
that referenced
this pull request
Feb 3, 2025
cherry picked from upstream pr denoland/deno#27891
nyannyacha
added a commit
to supabase/edge-runtime
that referenced
this pull request
Feb 3, 2025
cherry picked from upstream pr denoland/deno#27891
littledivy
added a commit
that referenced
this pull request
Feb 3, 2025
Ref #27891 (comment) ``` % deno eval 'console.log(Object.getOwnPropertyNames(process))' [ "_events", "_eventsCount", "_maxListeners", "versions", "stdin", "stdout", "stderr" ] % target/debug/deno eval 'console.log(Object.getOwnPropertyNames(process))' [ "_events", "_eventsCount", "_maxListeners", "release", "arch", "report", "title", "argv", "argv0", "chdir", "config", "cpuUsage", "cwd", "env", "execArgv", "exit", "abort", "reallyExit", "_exiting", "exitCode", "mainModule", "nextTick", "dlopen", "pid", "ppid", "platform", "setSourceMapsEnabled", "hrtime", "_kill", "kill", "memoryUsage", "stderr", "stdin", "stdout", "version", "versions", "emitWarning", "binding", "umask", "getgid", "getuid", "getegid", "geteuid", "getBuiltinModule", "_eval", "execPath", "uptime", "allowedNodeEnvironmentFlags", "features", "noDeprecation" ] ```
bartlomieju
pushed a commit
that referenced
this pull request
Feb 12, 2025
Fixes `[email protected]` ``` % deno eval "import 'npm:[email protected]'" # main error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'GOOGLE_SDK_NODE_LOGGING') at Object.log (file:///Users/divy/Library/Caches/deno/npm/registry.npmjs.org/google-logging-utils/0.0.2/build/src/logging-utils.js:356:36) at Object.<anonymous> (file:///Users/divy/Library/Caches/deno/npm/registry.npmjs.org/gcp-metadata/6.1.1/build/src/index.js:52:20) at Object.<anonymous> (file:///Users/divy/Library/Caches/deno/npm/registry.npmjs.org/gcp-metadata/6.1.1/build/src/index.js:409:4) at Module._compile (node:module:745:34) at loadMaybeCjs (node:module:770:10) at Object.Module._extensions..js (node:module:755:12) at Module.load (node:module:662:32) at Function.Module._load (node:module:534:12) at Module.require (node:module:681:19) at require (node:module:812:16) % target/debug/deno eval "import 'npm:[email protected]'" # this PR ``` --------- Signed-off-by: Divy Srivastava <[email protected]> Co-authored-by: Yoshiya Hinosawa <[email protected]>
bartlomieju
pushed a commit
that referenced
this pull request
Feb 12, 2025
Ref #27891 (comment) ``` % deno eval 'console.log(Object.getOwnPropertyNames(process))' [ "_events", "_eventsCount", "_maxListeners", "versions", "stdin", "stdout", "stderr" ] % target/debug/deno eval 'console.log(Object.getOwnPropertyNames(process))' [ "_events", "_eventsCount", "_maxListeners", "release", "arch", "report", "title", "argv", "argv0", "chdir", "config", "cpuUsage", "cwd", "env", "execArgv", "exit", "abort", "reallyExit", "_exiting", "exitCode", "mainModule", "nextTick", "dlopen", "pid", "ppid", "platform", "setSourceMapsEnabled", "hrtime", "_kill", "kill", "memoryUsage", "stderr", "stdin", "stdout", "version", "versions", "emitWarning", "binding", "umask", "getgid", "getuid", "getegid", "geteuid", "getBuiltinModule", "_eval", "execPath", "uptime", "allowedNodeEnvironmentFlags", "features", "noDeprecation" ] ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes
[email protected]