WebSDK 2.0.247 not working (Vue.js app) (only one instance of babel-polyfill is allowed)

Hi,

-Version: 5.5.2-1043 (Amazon AWS)
-WebSDK: 2.0.247 (2.0.202 works)


I tried to update to the latest WebSDK 2.0.247 in my vue app. However this fails, the error message is attached.

Error: Flashphoner API is not initialized

Uncaught (in promise) Error: only one instance of babel-polyfill is allowed

My babel.config.js looks like this
Code:
module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset'
  ]
}

How can i fix the error?

Best,
Thomas
 

Attachments

Max

Administrator
Staff member
Good day.
In the latest Web SDK builds, Flashphoner.init() is async function. So you should use await or Promise returned:
Code:
Flashphoner.init({}).then(() => {
     ...
});
 
Top