Skip to content

Tweak the Node.js version listed in "engines", to ensure that process.getBuiltinModule is available #19858

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

Merged
merged 1 commit into from
Apr 26, 2025

Conversation

luckymore
Copy link

@luckymore luckymore commented Apr 24, 2025

Actually, process.getBuiltinModule(id) was added in v22.3.0 and v20.16.0. When I ran example/node/pdf2png.mjs using Node 22.1, I encountered an error #19857 process.getBuiltinModule is not a function.

https://nodejs.org/docs/latest/api/process.html#processgetbuiltinmoduleid

@luckymore luckymore changed the title Master Tweak the Node.js version listed in "engines", to ensure that process.getBuiltinModule is available Apr 24, 2025
@timvandermeij timvandermeij merged commit 6891602 into mozilla:master Apr 26, 2025
9 checks passed
@timvandermeij
Copy link
Contributor

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: node@22 still reproduce this question process.getBuiltinModule is not a function
2 participants