#hosting on raspberry pi

5 messages · Page 1 of 1 (latest)

wraith temple
#

running node index.js on my vscode works fine, no errors
running it on my raspberry pi returns an error

node_modules/discord.js/src/client/BaseClient.js:29
      userAgentAppendix: options.rest?.userAgentAppendix
                                      ^

SyntaxError: Unexpected token "."
    at Object.<anonymous> (node_modules/discord.js/src/index.js:6:22)

yall got any clue?

stiff ginkgoBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
  • Marked as resolved by OP
wraith temple
#

actually i bet its that my computer has node version 19.0.0

last egret
#

Update your node version