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

util.parseArgs(): Uncaught TypeError: Cannot read properties of undefined (reading 'execArgv') #22363

Open
jcbhmr opened this issue Feb 9, 2024 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@jcbhmr
Copy link
Contributor

jcbhmr commented Feb 9, 2024

Version: Deno 1.40.4

$ deno
Deno 1.40.4
exit using ctrl+d, ctrl+c, or close()
REPL is running with all permissions allowed.
To specify permissions, run `deno repl` with allow flags.
> let m = await import("node:util")
undefined
> m.parseArgs({ options: {}, allowPositionals: true })
Uncaught TypeError: Cannot read properties of undefined (reading 'execArgv')
    at getMainArgs (ext:deno_node/internal/util/parse_args/parse_args.js:53:28)
    at Module.parseArgs (ext:deno_node/internal/util/parse_args/parse_args.js:162:48)
    at <anonymous>:1:24
@jcbhmr
Copy link
Contributor Author

jcbhmr commented Feb 9, 2024

looks like this is where process is not defined

const execArgv = process.execArgv;

@dsherret dsherret added bug Something isn't working good first issue Good for newcomers labels Feb 9, 2024
@javihernant
Copy link
Contributor

I'd like to work on this!

javihernant added a commit to javihernant/deno that referenced this issue Feb 13, 2024
fix parseArgs() not working due to missing import of node:process

this commit fixes issue denoland#22363
javihernant added a commit to javihernant/deno that referenced this issue Feb 13, 2024
fix parseArgs() not working due to missing import of node:process

this commit fixes issue denoland#22363
javihernant added a commit to javihernant/deno that referenced this issue Feb 14, 2024
fix parseArgs() not working due to missing import of node:process

this commit fixes issue denoland#22363
javihernant added a commit to javihernant/deno that referenced this issue Feb 15, 2024
fix parseArgs() not working due to missing import of node:process

this commit fixes issue denoland#22363
mmastrac pushed a commit that referenced this issue Feb 18, 2024
fix parseArgs() not working due to missing import of node:process

this commit fixes issue #22363
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants