Skip to content

fix: allow importing from electron/utility at runtime #47968

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
Aug 7, 2025

Conversation

dsanders11
Copy link
Member

Description of Change

Fixes importing from electron/utility since currently the following will be typed correctly, but throw a ERR_MODULE_NOT_FOUND error at runtime:

const { net } = require('electron/utility');

net.request('https://electronjs.org')

Checklist

Release Notes

Notes: Fixed an issue where importing from electron/utility threw a ERR_MODULE_NOT_FOUND error at runtime

@dsanders11 dsanders11 added semver/patch backwards-compatible bug fixes target/36-x-y PR should also be added to the "36-x-y" branch. target/37-x-y PR should also be added to the "37-x-y" branch. target/38-x-y PR should also be added to the "38-x-y" branch. labels Aug 5, 2025
@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Aug 5, 2025
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Aug 6, 2025
@codebytere codebytere merged commit 26ffc85 into main Aug 7, 2025
157 of 161 checks passed
@codebytere codebytere deleted the chore/utility-process-module branch August 7, 2025 07:53
@release-clerk
Copy link

release-clerk bot commented Aug 7, 2025

Release Notes Persisted

Fixed an issue where importing from electron/utility threw a ERR_MODULE_NOT_FOUND error at runtime

@trop
Copy link
Contributor

trop bot commented Aug 7, 2025

I have automatically backported this PR to "36-x-y", please check out #47987

@trop trop bot added the in-flight/36-x-y label Aug 7, 2025
@trop trop bot removed the target/36-x-y PR should also be added to the "36-x-y" branch. label Aug 7, 2025
@trop
Copy link
Contributor

trop bot commented Aug 7, 2025

I have automatically backported this PR to "37-x-y", please check out #47988

@trop
Copy link
Contributor

trop bot commented Aug 7, 2025

I have automatically backported this PR to "38-x-y", please check out #47989

@trop trop bot added in-flight/37-x-y in-flight/38-x-y merged/38-x-y PR was merged to the "38-x-y" branch. merged/37-x-y PR was merged to the "37-x-y" branch. merged/36-x-y PR was merged to the "36-x-y" branch. and removed target/37-x-y PR should also be added to the "37-x-y" branch. target/38-x-y PR should also be added to the "38-x-y" branch. in-flight/38-x-y in-flight/37-x-y in-flight/36-x-y labels Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/36-x-y PR was merged to the "36-x-y" branch. merged/37-x-y PR was merged to the "37-x-y" branch. merged/38-x-y PR was merged to the "38-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants