messagecommand generated from CLI error
I just started out with Sapphire and i was trying to use the CLI to generate a messagecommand but ran into this error
Solution:Jump to solution
I just started out with Sapphire and i was trying to use the CLI to generate a messagecommand but ran into this error
...
8 Replies
what's your TS version?
4.8.2
ok i upgraded it to 5.0.3
still got the same error
i downgraded to 4.9.5
and still no luck
try adding a name in it
name: 'command_name',
nothing
still the same error
i have no idea why it doesnt work
i checked the bots on github that use sapphire
and i copied their ts version
and their decorator version
ok so i found a fix
but this seems sketch
since i have to use
ignoreDeprecations
you have to use TS 4.9 for now
and also you have to make VSC use your node_modules tsc
by default it uses the built in one which is 5.x
we're working on updating our libraries for TS 5.x support but arent there yet
so first install TS 4.9.5 then in vsc do "select typescript version" in the command palette and select node_modules 4.9.5
add it in tags until support for v5 is released
Feel free to PR it
thanks
oh ok, i marked the wrong message