Sapphire - Imagine a framework
Sapphire - Imagine a framework

sapphire-support

Root Question Message

JcbSm
JcbSm12/6/2022
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?
JcbSm
JcbSm12/6/2022
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"
    },

Solution Message

JcbSm
JcbSm12/6/2022
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/*"]
        }
    },

}
Favna
Favna12/6/2022
Sapphire doesn't support djs v14 yet
Krish
Krish12/6/2022
discord.js v14 will be supported in sapphire v4 (https://github.com/sapphiredev/framework/pull/512)
Krish
Krish12/6/2022
💀
JcbSm
JcbSm12/6/2022
:thumbs_up_roblox:
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy