Help me whit Dialog

Help me whit Dialog

This error happens to me:

  1. Uncaught Error: cannot call methods on dialog prior to initialization; attempted to call method 'open'

what can be causing this error?

thaanks!!