Skip to content
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

Missing Node Compatibility Support for process.loadEnvFile #28017

Open
0xharshrastogi opened this issue Feb 8, 2025 · 0 comments · May be fixed by #28046
Open

Missing Node Compatibility Support for process.loadEnvFile #28017

0xharshrastogi opened this issue Feb 8, 2025 · 0 comments · May be fixed by #28046
Assignees
Labels
bug Something isn't working correctly node compat

Comments

@0xharshrastogi
Copy link

According to deno docs the following function is supported in docs here: https://docs.deno.com/api/node/process/~/Process#methods_loadenvfile_16

import process from "node:process";

console.log("loadEnvFile" in process);
process.loadEnvFile("./.test.env");

Which results in:

false
error: Uncaught (in promise) TypeError: process.loadEnvFile is not a function
process.loadEnvFile("./.test.env");
        ^
    at file:///Users/harshrastogi/Developer/deno-moi/provider/test.ts:21:9

I'm using deno 2.1.9 on Apple Mac M2 Pro Chip (arm64)

@0xharshrastogi 0xharshrastogi changed the title missing node compatiblity support for process.loadEnvFile Missing Node Compatibility Support for process.loadEnvFile Feb 8, 2025
@littledivy littledivy added bug Something isn't working correctly node compat labels Feb 8, 2025
@littledivy littledivy self-assigned this Feb 8, 2025
@littledivy littledivy linked a pull request Feb 11, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly node compat
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants