Member registration through Velo not working

@anupamtrivedi
Always try to read given information carefully.
All needed information you normaly should be able to find inside the given post-link.

Before you start to code something more complex, do start always simple, for example like this one…

import wixUsers from 'wix-users';
import wixWindow from 'wix-window';

$w.onReady(function(){
   $w('#submit').onClick(()=>{console.log("Submit-Button clicked")
      let firstName = $w('#firstName').value;
      let lastName = $w('#lastName').value;
      let email = $w('#email').value;
      let password = $w('#password').value; 
 
      wixUsers.register(email, password, {
         contactInfo: {
            "firstName": firstName,
            "lastName": lastName,
         }
      })
      .then((result)=>{console.log("RESULTS: ", result); 
         wixWindow.lightbox.close();
      }); 
   });
});