Sapphire doesn't compile wirh discord.js v14

Apologies if this is silly but I've installed @sapphire/framework and when I try to compile using tsc I get thousands of errors from the sapphire framework. Am I missing an essential package?
Solution:
tsconfig.json:```json { "extends": "@sapphire/ts-config", "compilerOptions": { ...
Jump to solution
6 Replies
JcbSm
JcbSm•2y ago
Dependencies in package.json:
"dependencies": {
"@sapphire/discord.js-utilities": "^5.1.2",
"@sapphire/framework": "^3.1.4",
"@sapphire/ts-config": "^3.3.4",
"discord.js": "^14.7.1",
"dotenv": "^16.0.3",
"mysql": "^2.18.1"
},
"devDependencies": {
"@types/mysql": "^2.15.21"
},
"dependencies": {
"@sapphire/discord.js-utilities": "^5.1.2",
"@sapphire/framework": "^3.1.4",
"@sapphire/ts-config": "^3.3.4",
"discord.js": "^14.7.1",
"dotenv": "^16.0.3",
"mysql": "^2.18.1"
},
"devDependencies": {
"@types/mysql": "^2.15.21"
},
Solution
JcbSm
JcbSm•2y ago
tsconfig.json:
{
"extends": "@sapphire/ts-config",
"compilerOptions": {

// Module stuff
"module": "CommonJS",
"moduleResolution": "node",
"esModuleInterop": true,

// Compilation directories
"rootDir": "src",
"outDir": "out",
"tsBuildInfoFile": "out/.tsbuildinfo",

// Paths and such
"baseUrl": "./src",
"paths": {
"#lib/*": ["./lib/*"],
"#types/*": ["./lib/types/*"]
}
},

}
{
"extends": "@sapphire/ts-config",
"compilerOptions": {

// Module stuff
"module": "CommonJS",
"moduleResolution": "node",
"esModuleInterop": true,

// Compilation directories
"rootDir": "src",
"outDir": "out",
"tsBuildInfoFile": "out/.tsbuildinfo",

// Paths and such
"baseUrl": "./src",
"paths": {
"#lib/*": ["./lib/*"],
"#types/*": ["./lib/types/*"]
}
},

}
Favna
Favna•2y ago
Sapphire doesn't support djs v14 yet
Krish
Krish•2y ago
discord.js v14 will be supported in sapphire v4 (https://github.com/sapphiredev/framework/pull/512)
Krish
Krish•2y ago
💀
JcbSm
JcbSm•2y ago
<:thumbs_up_roblox:275832913025564682>
Want results from more Discord servers?
Add your server