when I follow the guide creating router pages, an exception occurred when using [u]WixRouterSitemapEntry[/u]
I got errors :
import { ok, notFound, 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.
In preview mode 's console all Dynamic Pages , got error below, and return 502 pages after published
/user-code/backend/routers.js: Duplicate declaration “entry”
So, how to use WixRouterSitemapEntry?
Is it my wrong? If this is not a bug, why can’t I find a similar question?