I am using a third party library which is throwing the error while loading the library.
Uncaught TypeError: n.__extends is not a function
As this library works fine in an environment outside of Backendless I assume that this could be a conflict with a Backendless library. Do you have an idea how this could be mitigated or have you ever experienced something like this before?
I assume we are talking about UIBuilder, is that correct?
Please create a new UI Container and provide a minimum UI/Logic/Components/etc to reproduce the issue and then share it with us:
appId
container name
any additional steps which can help us reproduce the problem
AppId: A2090C1B-936C-A876-FF32-277A55A60700
there is only one Container and the page is “initialize”. You will be directed to the published production site and should see the error in the console.
Yes, everything is in the UI Builder, you can ignore the API services.
This is the loading and set-up of the Player, not the loading of the SDK.
I do this in the later step according to their recommendation.
But this step fails due to the fact that the SDK is not ready, so this command onSpotifyWebPlaybackSDKReady cannot be executed and no player variable can be assigned.
But, your wish is my command. I have create the page with this code now. The effect is the same. Please check it out.
You need to start with the initialize Page in the development environment and you will be redirected after getting the token to the published standaloneTest Page. At OnPageEnter the code will be executed.
The TS library is Type Script related. Are you not using Type Script?
I have created a bubble.io page (free version) with the script and it works just fine. The page just contains the script and a button that executes the script in a workflow.
As the auth code is hard-coded and the lifetime is only a couple of minutes I cannot share the URL with you here. But I can share the content of the player variable after the execution of onSpotifyWebPlaybackSDKReady:
the idea with the Custom Head content is great and seem to work. The authentication error is clear to me. To get an Auth Code you have to call a special Spotify Page first that will redirect you to your URL (cannot be the development page) with the actual code.