Errors when extending @sapphire/ts-config

I am extending the tsconfig in my config by using
{
"extends": "@sapphire/ts-config"
}
{
"extends": "@sapphire/ts-config"
}
(yes this is the entire tsconfig file) And I get these errors when running tsc:
6 Replies
oriel beck
oriel beck2y ago
Here are my deps:
"dependencies": {
"@sapphire/decorators": "^6.0.1",
"@sapphire/framework": "^4.4.1",
"@sapphire/plugin-subcommands": "^4.0.1",
"@sapphire/utilities": "^3.11.1",
"discord.js": "^14.9.0"
},
"devDependencies": {
"@sapphire/ts-config": "^4.0.0",
"@types/node": "^18.15.11",
"typescript": "^5.0.4"
}
"dependencies": {
"@sapphire/decorators": "^6.0.1",
"@sapphire/framework": "^4.4.1",
"@sapphire/plugin-subcommands": "^4.0.1",
"@sapphire/utilities": "^3.11.1",
"discord.js": "^14.9.0"
},
"devDependencies": {
"@sapphire/ts-config": "^4.0.0",
"@types/node": "^18.15.11",
"typescript": "^5.0.4"
}
kyra
kyra2y ago
Have you tried deleting node_modules and reinstalling?
ararou!
ararou!2y ago
i have never seen error messages stack like that
oriel beck
oriel beck2y ago
will try, sec Did not work, I also moved from node 16 to node 18 to check if that helps, it didn't
Favna
Favna2y ago
The problem is that you're calling your globally installed typescript (tsc as opposed to npx tsc / yarn tsc / etc) which is very outdated compared to the one in your package.json So either uninstall your global version so you can't mess up like this anymore, or update it. Or just don't use it. @oriel beck did you get this?
oriel beck
oriel beck2y ago
Hmmm I didn't see this I'll run it through yarn then, I was running swc as a fix for now
Want results from more Discord servers?
Add your server