Skip to main content

How to fix "import_dom.default.init is not a function" error with Memberstack DOM?

I am trying to use the dom 

import memberstackDOM from '@memberstack/dom';
const memberstack = memberstackDOM.init({

publicKey:'pk_',

});

But I am getting an error "import_dom.default.init is not a function".

Does anyone know what this could be?

2 comments

  • Josh Lopez
    Josh Lopez

    Hey Andreas Wagner 👋

    Do you have a url so we can see the error live?

    0
  • Alper Çınar
    Alper Çınar

    I have loaded the library  memberstack.js as a static script

    and I am not able to call init function as well. 

    Here are the functions available for $memberstackDom and init() is not there

    0

Please sign in to leave a comment.

Sitemap