How to use WixRouterSitemapEntry?

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?

Hi

You should use WixRouterSitemapEntry . Yes it shows an error on the IDE but it will work on the live site. It is a bug on our end. We will fix it soon and the error from the IDE will disappear.