Instead of:
$w("#myElement").link = "/about-me";
$w("#myElement").target = "_blank";
We can use this to open a new tab:
import wixLocation from 'wix-location';
let BaseUrl = wixLocation.baseUrl;
let myLink = "/about-me"
$w("#myElement").link = BaseUrl + myLink;
$w("#myElement").target = "_blank";
The secret is to use http: // or https: // the URL for Google Chrome to open in a new tab when we use it: .target = “_blank”