wixLocation.to("https://.....") results in "TypeError: _wixLocation.wixlocation is undefined" in Firefox.


Both Edge and Chrome produce “TypeError: Cannot read property ‘to’ of undefined”. Yes, I am including " import { wixlocation } from “wix-location” ;" at the top. The URL is an external site and will vary. My desire is to open a .PDF file on an external site on an “on click” event on a button on a repeater. This should be simple but it just won’t work. Does anyone have any insight into how to make this work. Thanks.

It should be:

import wixLocation from 'wix-location';

Thank you very much, J.D. I should have caught that.