When using the form method, I keep receiving this error message: 'Uncaught (in promise) TypeError: form.createField is not a function.'
The form method returns a promise rather than a form
object. The browser engine is attempting to run createField
before the promise has been fulfilled. Therefore, the method is not defined within the call's execution context. Before you can access the form
object's methods, you must await the call's return value.