#Error Trying to Run on Server

1 messages · Page 1 of 1 (latest)

zinc hawk

Before when I was in VS code running it. It worked perfectly fine but when I move it to a server I get this error.

file:///home/container/source/index.js:1
import { Client, GatewayIntentBits, Collection } from 'discord.js'
                 ^^^^^^^^^^^^^^^^^
SyntaxError: The requested module 'discord.js' does not provide an export named 'GatewayIntentBits'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
    at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)