Hello - I am receiving a " Error parsing web-module ‘public/pages/yhmn3.js’: Unexpected token (36:0) while parsing file: public/pages/yhmn3.js" message when previewing my code which right now is just trying to assign a text box on my form the current user’s email. Any guidance would be greatly appreciated. I am just now jumping into Corvid.
Thank you
Here is my code:
import wixUsers from ‘wix-users’ ;
$w.onReady( function () {
// Write your JavaScript here
// To select an element by ID use: $w(“#elementID”)
let user = wixUsers.currentUser;
let userId = user.id; // “r5cme-6fem-485j-djre-4844c49”
let isLoggedIn = user.loggedIn; // true
user.getEmail()
.then( (email) => {
$w( “#CurrentUserEmailText” ).text = email; // “user@something.com”
});