Jump to content


Photo

Error in compiling

node.js node-steamcommunity

  • Please log in to reply
1 reply to this topic

#1 bumperG

bumperG

    Newbie

  • Member
  • Pip
  • 1 posts

Posted 10 November 2018 - 02:24 AM

Hello,

 

I want to make a website about my group member statistics (like Steam Level, Games, etc) using React

 

After i installing node-steamcommunity and i want to trying the module, i got an error

 

 

 

 

TypeError: setInterval(...).unref is not a function
44 | } // Report stats hourly, and immediately in 10 minutes
45 | 
46 | 
47 | setInterval(reportStats, 1000 * 60 * 60).unref();
48 | setTimeout(reportStats, 1000 * 60 * 10).unref();
49 | 
50 | if (isDebugging()) {
setupReporting
D:/testing/node_modules/@doctormckay/stats-reporter/index.js:47
 
Did I make a mistake?
Thank you


#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,815 posts

Posted 12 November 2018 - 12:56 AM

node-steamcommunity is a Node.js module. It does not work in the browser, even if you use something like browserify.







Also tagged with one or more of these keywords: node.js, node-steamcommunity

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users