Uncaught in promise error

  • 24 August 2021
  • 1 reply
  • 63 views

Badge

I am developing a plugin using web api, where I read the miro board contents from javascript:

Sample code:

async function javascriptFunction() {

          let selectedWidgets = await miro.board.selection.get() 

}

This code works fine first time, but when the app is launched again, it gives error: 

Uncaught (in Promise) TypeError: cannot read property 'selection’ of undefined.  

Anyone else faced this issue? 


1 reply

Userlevel 4
Badge +6

Hi @Kamalesh Joshi,

 

I cannot reproduce the error on my side, would you have a project or an example that can help me to reproduce the error to investigate? 

Reply