TheProgDog Posted April 23, 2023 Report Posted April 23, 2023 (edited) I'm trying to implement this package in my React app to log into my Steam account to access a specific game's API, and while trying to follow along with the examples step-by-step, the whole app crashes if I include 'steam-user' in one of my pages. At first I figured it was crashing because I was doing something wrong, but eventually I found out it crashes even when all I do is include the package in the page like this: const SteamUser = require('steam-user'); Which results in the entire site crashing with this callstack: Quote __webpack_require__(...).join is not a function TypeError: __webpack_require__(...).join is not a function at load_lzma (http://localhost:3000/static/js/bundle.js:69254:115) at ./node_modules/lzma/index.js (http://localhost:3000/static/js/bundle.js:69256:8) at options.factory (http://localhost:3000/static/js/bundle.js:182419:31) at __webpack_require__ (http://localhost:3000/static/js/bundle.js:181843:33) at fn (http://localhost:3000/static/js/bundle.js:182076:21) at ./node_modules/steam-user/components/cdn.js (http://localhost:3000/static/js/bundle.js:148806:14) at options.factory (http://localhost:3000/static/js/bundle.js:182419:31) at __webpack_require__ (http://localhost:3000/static/js/bundle.js:181843:33) at fn (http://localhost:3000/static/js/bundle.js:182076:21) at ./node_modules/steam-user/components/chat.js (http://localhost:3000/static/js/bundle.js:149464:22) I don't know what version of webpack I should have installed, but npm tells me it installed [email protected]. Could this be an issue with the version of webpack npm installed or could it be something else? I tried downgrading the version but I got nothing. I forgot to mention but I am running the latest OS on an M1 Macbook. I forgot Apple Silicon has a few compatibility issues with things so I'm starting to wonder if that could be it, but I haven't come across any issues with React projects here before so I have my doubts. Edited April 23, 2023 by TheProgDog Mentioning platform Quote
Dr. McKay Posted April 24, 2023 Report Posted April 24, 2023 steam-user does not work in the browser. TheProgDog 1 Quote
TheProgDog Posted April 26, 2023 Author Report Posted April 26, 2023 On 4/24/2023 at 4:51 PM, Dr. McKay said: steam-user does not work in the browser. Yee, thankfully I was able to figure that out a while after I posted here and got to work on writing proper server-side code for the site. I forgot to thank you for confirming my suspicions yesterday but better late than never, thanks! I was just able to confirm it's up and running now. 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.