[Vuejs]-Vue Error: Uncaught (in promise) TypeError cannot read properties of null (reading 'Address')

0👍

It is probably because the javascript is running before the DOM is loaded. ( see Related posts on the right side )
Try running the js inside a function attached to an event listener:

    function init() {
      // Run your javascript code here
    }
    
    // Run the 'init' function when the DOM content is loaded
    document.addEventListener("DOMContentLoaded", init, false)

Leave a comment