insane amount of errors
Solution:Jump to solution
Michael Lee
What's the difference between a tilde (~) and a caret (^) in a npm ...
If you use npm to manage packages in your Node application, youβre probably familiar with the package.json file.
20 Replies
"typescript": "^5.4.5"
"@sapphire/decorators": "^6.0.1",
"@sapphire/discord-utilities": "^3.0.3",
"@sapphire/discord.js-utilities": "^6.0.7",
"@sapphire/fetch": "^2.4.1",
"@sapphire/framework": "^5.2.1",
"@sapphire/plugin-api": "^5.1.0",
"@sapphire/plugin-editable-commands": "^3.0.2",
"@sapphire/plugin-logger": "^3.0.4",
"@sapphire/plugin-subcommands": "^4.0.1",
"@sapphire/time-utilities": "^1.7.9",
"@sapphire/type": "^2.4.0",
"@sapphire/utilities": "^3.12.0",
"@Skyra/env-utilities": "^1.2.1",
can someone lmk if its to do with my packages
oops didnt mean to ping that person
oop
i looked in that thread
doesnt help me
my ts is already at 5.4.5
@kyra π©΅π©·π€π©·π©΅ did 5.4.5 break @sapphire/result?
Iβm pretty sure nothing works on latest TS
im on 5.4 tho
not 5.5
this is happening in CI right?
does this do a fresh run of everything?
can you try locally?
doing it on railway
also these errors
lemme try locally
it works locally
there may be some problem in railway then.
Try a cold build, i.e. tell railway to provision a new empty container with node 20 lts
clean install dependencies
build
further steps
ill open a ticket in railway too
You're not on 5.4.5 if you have ^5.4.5 @dayflare
Solution
Michael Lee
What's the difference between a tilde (~) and a caret (^) in a npm ...
If you use npm to manage packages in your Node application, youβre probably familiar with the package.json file.
what the sigma
life saver
ty
So is the solution to this to stay on an outdated version of TypeScript?
for now yes
TS doesnt do semver, they push breaking changes in minor versions
Is this a TypeScript issue or a framework issue that needs to be work on?
TypeScript issue