Last 12 weeks · 0 commits
4 of 6 standards met
After upgrading to electron 39 windows users are seeing I'm assuming this is from electron utils enforceMacOSAppLocation and https://github.com/sindresorhus/electron-util/blob/main/source/main/enforce-macos-app-location.ts#L21 Is the first if statement that it's on mac not catching and exiting early? if (isDev ?? !is.macos) { return; } I've added and verified it's still win32 on windows so I don't know how isMac is not false. Do I need to be doing something differently or does the utility need to update?
I use latest typescript "devDependencies": { "@types/node": "^25.2.3", "@types/webpack": "^5.28.5", "@types/webpack-node-externals": "^3.0.4", "copy-webpack-plugin": "^13.0.1", "electron-util": "^1.0.0", "esno": "^4.8.0", "prettier": "3.8.1", "ts-loader": "^9.5.4", "ts-node": "^10.9.2", "typescript": "^5.9.3", "webpack": "^5.105.2", "webpack-cli": "^6.0.1", "webpack-node-externals": "^3.0.0" In the above environment, a compilation error occurred. The final solution was to use the webpack-node-externals plugin: . This is the correct way to solve the problem. Simply copy this code into . Please fix this.
Repository: sindresorhus/electron-util. Description: Useful utilities for Electron apps and modules Stars: 1337, Forks: 65. Primary language: TypeScript. Languages: TypeScript (87.9%), JavaScript (9.5%), HTML (2.6%). License: MIT. Topics: electron, electron-module, nodejs, npm-package. Latest release: v1.0.0 (9mo ago). Open PRs: 0, open issues: 0. Last activity: 9mo ago. Community health: 71%. Top contributors: sindresorhus, mquevill, cvx, codebytere, kaatt, acheronfail, ntamas, MarshallOfSound, Richienb, coolhome and others.