import_dom.default.init is not a function Planned

Post author
Andreas Wagner

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?

Comments

2 comments

  • Comment author
    Josh Lopez

    Hey Andreas Wagner 👋

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

     

    0
  • Comment author
    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.