Parsing error message

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

});

Do you have any errors flagged in your code? Do you have a text component on your page with the id #CurrentUserEmailText?

Keep in mind, that as stated in the wix-users API documentation:
The APIs in wix-users are only partially functional when previewing your site. View a published version of your site to see their complete functionality.

Thank you for responding Yisrael - I did have some errors so I decided to change the page object to be an input box instead of a text box and also realized I was missing some closing brackets in the code above. It works now!

A text box should also work. Sounds like your problem was the brackets.

Glad you got it working.