Last 12 weeks · 0 commits
4 of 6 standards met
Electron renderer process importing macos-version is broken with commit b42707c (https://github.com/sindresorhus/macos-version/commit/b42707c62024f2c231b2ffae9e81fd27679a7c7f). The error message is like: internal/modules/cjs/loader.js:890 Uncaught Error: Cannot find module 'node:process' Require stack: /index.html at Module._resolveFilename (internal/modules/cjs/loader.js:887) at Function.o._resolveFilename (electron/js2c/renderer_init.js:33) at Module._load (internal/modules/cjs/loader.js:732) at Function.f._load (electron/js2c/asar_bundle.js:5) at Function.o._load (electron/js2c/renderer_init.js:33) at Module.require (internal/modules/cjs/loader.js:959) at require (internal/modules/cjs/helpers.js:88) at Object.node:process (index.js:2791) at __webpack_require__ (index.js:9052) at eval (index.js:11) Removing import of 'macos-version' or revert to older release and the error is gone.
First, thank you for all the amazing open source libraries you've provided and supported over the years. You're a hero. I think this repo needs to be updated for proper Big Sur support. I'm getting as macOS version while running Big Sur . I can look into making a PR later tonight but just wanted to point it out first and make sure I wasn't missing something simple. code output versions macos-release: 2.4.1 macos-version: 5.2.0 my computer !image
Repository: sindresorhus/macos-version. Description: Get or check the current macOS version Stars: 61, Forks: 8. Primary language: JavaScript. Languages: JavaScript (88%), TypeScript (12%). License: MIT. Latest release: v6.0.0 (5y ago). Open PRs: 0, open issues: 0. Last activity: 5y ago. Community health: 71%. Top contributors: sindresorhus, arthurvr, BendingBender, albinekb, briangonzalez, Leelow, Richienb.