Help with code for URL paramaters

put in the call and get:

TypeError: _wixWindow2.default.openLightBox is not a function

This is what I have:

// For full API documentation, including code examples, visit Velo API Reference - Wix.com

import wixLocation from ‘wix-location’;
import wixWindow from ‘wix-window’;

$w.onReady( function () {
//TODO: write your page related code here…

let query = wixLocation.query;
function popUpMessage(message) {
wixWindow.openLightBox(‘Code for ICARIS’, {‘message’:query});
}
popUpMessage(‘ICARIS’)
});