Object undefined
Unanswered
Swedish Lapphund posted this in #help-forum
Swedish LapphundOP
7 Replies
Swedish LapphundOP
Actually unsure why I get this error, is it because it cannot guarentee that
activeMainStep - 1 is within bounds?mainSteps is a constant right above the functionSwedish LapphundOP
Not sure what else to provide honestly @B33fb0n3, let me you know you need to help me understand why the warning/error is given.
@Swedish Lapphund Actually unsure why I get this error, is it because it cannot guarentee that `activeMainStep - 1` is within bounds?
do you have the
noUncheckedIndexedAccess flag enabled in tsconfig? this is what would make this behavior happen@Swedish Lapphund Not sure what else to provide honestly <@301376057326567425>, let me you know you need to help me understand why the warning/error is given.
Can you show the whole type? It seems like there is something missing at the end
@Rafael Almeida do you have the `noUncheckedIndexedAccess` flag enabled in tsconfig? this is what would make this behavior happen
Swedish LapphundOP
Ill take a look when im home! Thanks for the suggestion that might be it
@B33fb0n3 Can you show the whole type? It seems like there is something missing at the end
Swedish LapphundOP
Will do when home, apologies