Uncaught TypeError: Cannot read properties of undefined (reading ‘getCurrentMember’)

Article author
Duncan Hamra

This error can show up when adding Memberstack scripts to your site. Here are a few mistakes which can cause the error to appear:

  • Problem → Your custom code was added before the Memberstack script.
    • Fix → move the custom code to the very bottom of the page & move your Memberstack header script to the very top of the page. 
  • Problem → You've used the wrong variable before your function.
    • If you're in Webflow be sure to use$memberstackDom.getCurrentMember()

Was this article helpful?



Please sign in to leave a comment.