Jump to content


Photo

Path must be a string. Received undefined

node.js node-steam-user

Best Answer timgfx , 11 May 2018 - 08:02 AM

I used 

 

process.env = {};
 
at the start of my code. That broke stuff
Go to the full post


  • Please log in to reply
1 reply to this topic

#1 timgfx

timgfx

    Advanced Member

  • Member
  • PipPipPip
  • 81 posts

Posted 11 May 2018 - 07:07 AM

Stack Trace:
TypeError: Path must be a string. Received undefined
    at assertPath (path.js:28:11)
    at Object.join (path.js:489:7)
    at userData (C:\Users\timol\Desktop\myFolder\node_modules\appdirectory\lib\appdirectory.js:16:25)
    at AppDirectory._setTemplates (C:\Users\timol\Desktop\myFolder\node_modules\appdirectory\lib\appdirectory.js:134:34)
    at new AppDirectory (C:\Users\timol\Desktop\myFolder\node_modules\appdirectory\lib\appdirectory.js:129:10)
    at new SteamUser (C:\Users\timol\Desktop\myFolder\node_modules\steam-user\index.js:104:34)
    at my files
 
 
This is steam-user index.js:104. This was always there, so this is weird. The exact same thing happens in steam-tradeoffer-manager
this.options.dataDirectory = (new AppDirectory({
"appName": "node-steamuser",
"appAuthor": "doctormckay"
})).userData();

Edited by timgfx, 11 May 2018 - 07:08 AM.


#2 timgfx

timgfx

    Advanced Member

  • Member
  • PipPipPip
  • 81 posts

Posted 11 May 2018 - 08:02 AM   Best Answer

I used 

 

process.env = {};
 
at the start of my code. That broke stuff






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

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users