I’m using the javascript api. I didn’t change any code but I recently started receiving this error in the Google Chrome console:
Uncaught TypeError: Backendless.Async is not a constructor
Did something change that I’m not aware of?
I’m using the javascript api. I didn’t change any code but I recently started receiving this error in the Google Chrome console:
Uncaught TypeError: Backendless.Async is not a constructor
Did something change that I’m not aware of?
Did you find a solution to this?
Backendless.Async was eliminated in version 4 of the API. Instead, the API supports JS promises.
How do you import the library in your app?
Regards,
Mark
I was wondering where this was documented?
Also, my apps run on 3.x, is there a way to get a copy of the previous JS build or is this a mandatory refactor of code?
I suspect the URL you’re using is
http://api.backendless.com/sdk/js/latest/backendless.js
which changes when a new version is released. This URL now points to the library for version 4.
The latest library for version 3 is available at:
https://unpkg.com/backendless@3.1.25/dist/backendless.js
Still does’t work! I cleaned the cache, used another web browser, wasted a lot of time.
Thank you, now it work;)
Thanks. That’s what I needed. Everything is working now. Hopefully we can upgrade to 4.0 soon.