#ts not compiling well

1 messages · Page 1 of 1 (latest)

sullen latch
#

I don't know if it's a discord.js/sapphire issue or just a compiling issue, but when compiling normally or with ts-node, bot doesn't run at all but instead shows an error on all command files (picture below) and I dont know how to fix it

ebon hollyBOT
#

@sullen latch to help others find answers, you can mark your question as solved via Right Click Solution Message->Apps->✅ Mark Solution

halcyon tiger
#

update your dependencies. Permissions is removed in DJS v14, you need matching versions of all the Sapphire dependencies (their latest versions)

#

and that has nothing to do with TS, it's a JS runtime error

pastel skyBOT
#

<:_:861671077365284884> TypeError
The TypeError object represents an error when an operation could not be performed, typically (but not exclusively) when a value is not of the expected type.

sullen latch
#

it now works

#

thanks lol

ebon hollyBOT
#

Thank you for marking this question as solved!

Question Message ID

1074110092439474236

Solution Message ID

1074110992922972190