sanchoys Posted October 21, 2023 Report Posted October 21, 2023 my program uses electron and react libraries, when I try to use community.login() method I get this error: This is how I import node-steamcommunity in renderer process: Everything worked fine on the [email protected] version, but I had to upgrade due to authorization changes. Quote
Dr. McKay Posted October 21, 2023 Report Posted October 21, 2023 This is a known incompatibility in Electron that the Electron team has acknowledged and refused to fix. Package maintainers cannot consider all possible incompatibilities in all possible runtime environments; you'd do well to only use third-party modules in your main process rather than in a Node-enabled renderer process. You're ultimately trying to run code written for Node.js in an environment that's only mostly API-compatible with Node.js. I'll try to add a workaround when I get to it. Quote
Dr. McKay Posted October 22, 2023 Report Posted October 22, 2023 npm update should take care of this for you. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.