To use the site module, import wixSiteFrontend from the @wix/site-site module:
wixSiteFrontend
@wix/site-site
import wixSiteFrontend from "@wix/site-site";
The APIs in @wix/site-site can only be used in front-end code.