scratch-api
scratch-api copied to clipboard
user.cloudSession is undefined
I’m having a new error in my code. I have 2 projects using this api, and now they both say “cannot read properties of user.cloudSession of undefined.”
I wouldn’t have this error up until now. Here is a photo of the code. Is there something wrong with it?
This is happening to me as well. Probably due to a change in the Scratch API.
Check to see if err
exists =)
Try using scratch3-api (or new-scratch3-api, if you are not on TypeScript) if the answer above does not help. Cloud variables work there fine & it has promise support, so no more callback hell.
Try using scratch3-api (or new-scratch3-api, if you are not on TypeScript) if the answer above does not help. Cloud variables work there fine & it has promise support, so no more callback hell.
A bit wrong. TypeScript shouldn't actually matter, it compiles to JS anyway. That's a library problem that prevents it from being used in both TypeScript and JavaScript.
Try using scratch3-api (or new-scratch3-api, if you are not on TypeScript) if the answer above does not help. Cloud variables work there fine & it has promise support, so no more callback hell.
A bit wrong. TypeScript shouldn't actually matter, it compiles to JS anyway. That's a library problem that prevents it from being used in both TypeScript and JavaScript.
Regardless, I have deprecated scratch3-api
due to low code quality and bugs. Please switch to @errorgamer2000/scratch-cloud
instead.
Get real
@Sly-Little-Fox not sure what you mean