when I use [u]WixRouterSitemapEntry[/u]
I got errors :
import {WixRouterSitemapEntry} from 'wix-router';
'WixRouterSitemapEntry' is declared but its value is never read.
however, when I change to wixRouterSitemapEntry
I got errors :
import { ok, notFound, wixRouterSitemapEntry } from "wix-router";
export function myRouter_SiteMap(sitemapRequest){
....
let entry = new wixRouterSitemapEntry(domain);
}
This expression is not constructable. Type 'WixRouterSitemapEntry' has no construct signatures.
Is it my wrong? If this is not a bug, why can’t I find a similar question?