Yuvraj Rathva
Yuvraj Rathva
DIAdiscord.js - Imagine an app
Created by kobeeeef on 9/6/2023 in #djs-questions
Module not found: Can't resolve 'worker_threads'
Understood, So the best way to run bot is using concurrently in "dev" as Shawty did. Thank you for the help.
11 replies
DIAdiscord.js - Imagine an app
Created by kobeeeef on 9/6/2023 in #djs-questions
Module not found: Can't resolve 'worker_threads'
I am not able to understand above discussion about how @Shawty solve this problem, please help me out how can I fix this
11 replies
DIAdiscord.js - Imagine an app
Created by kobeeeef on 9/6/2023 in #djs-questions
Module not found: Can't resolve 'worker_threads'
I am encountering same error while importing Client from discord.js in index.tsx I am using node ^20.4.5 and discord.js ^14.14.1 version. Here is my code of index.tsx
// some other imports

import { Client } from "discord.js";

const client = new Client({
intents: ["Guilds", "GuildMessages", "DirectMessages"],
});
client.once("ready", () => {
console.log("Discord bot is ready! 🤖");
});

// some other code
// some other imports

import { Client } from "discord.js";

const client = new Client({
intents: ["Guilds", "GuildMessages", "DirectMessages"],
});
client.once("ready", () => {
console.log("Discord bot is ready! 🤖");
});

// some other code
11 replies