Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running on Ubuntu 22.04 #378

Open
DenyaBanan opened this issue Oct 9, 2024 · 1 comment
Open

Error when running on Ubuntu 22.04 #378

DenyaBanan opened this issue Oct 9, 2024 · 1 comment

Comments

@DenyaBanan
Copy link

When running npm start run, I get an error in the console

[email protected] start
ts-node . "run"

/rustplusplus/node_modules/discord.js/src/client/BaseClient.js:21
if (options.rest?.userAgentAppendix) {
^

SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Object.require.extensions. [as .js] (/rustplusplus/node_modules/ts-node/src/index.ts:1608:43)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:85:18)
at Object. (/rustplusplus/node_modules/discord.js/src/index.js:6:22)
at Module._compile (internal/modules/cjs/loader.js:999:30)

@FaiThiX
Copy link
Contributor

FaiThiX commented Oct 13, 2024

try to remove your node_modules folder and also the package-lock.json and rerun "npm install"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants