TheProgDog
-
Posts
2 -
Joined
-
Last visited
Posts posted by TheProgDog
-
-
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.
"__webpack_require__(...).join is not a function" While trying to include package in a React app
in node-steam-user
Posted
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.