Hi there, I have tried to find a thread on this error but was unable. What does this error mean?
Parsing error: The keyword ‘let’ is reserved. This is in reference to the below code:
I implemented this code based on this guide https://www.wix.com/code/reference/wix-users-backend.html#approveByToken.
Thanks for your help.
import wixUsers from 'wix-users';
import {doRegistration} from 'backend/register';
export function registerButton_click(event) {
let loginEmail = // the user's email address
let loginPassword = // the user's password <------------------ Error is here
let firstName = // the user's first name
let lastName = // the user's last name
doRegistration(email, password, firstName, lastName)
.then( () => {
console.log("Confirmation email sent.");
} );
}