i got a bunch of typescript errors

look at the picture
10 Replies
fried
fried2y ago
this my index.ts
import { SapphireClient } from "@sapphire/framework";
import { config } from "dotenv";
config();

const client = new SapphireClient({ intents: ["Guilds"] });

client.login(process.env.TOKEN);
import { SapphireClient } from "@sapphire/framework";
import { config } from "dotenv";
config();

const client = new SapphireClient({ intents: ["Guilds"] });

client.login(process.env.TOKEN);
fried
fried2y ago
when i start my bot i get this error
Sawako
Sawako2y ago
use djs v13
fried
fried2y ago
how do i do that
Sawako
Sawako2y ago
npm install discord.js@v13-lts
fried
fried2y ago
latest is 13.12.0 i think ok
fried
fried2y ago
im getting this error now
fried
fried2y ago
Favna
Favna2y ago
Looks like you have some wrong dependency versions still. If this is a new bot, try using the Sapphire CLI to generate it to get the right versions. For example don't have discord-api-types higher than 0.33.5
Krish
Krish2y ago
Seems like dapi types error