Closed guy-confetti closed 1 month ago
Hi, thanks for the reproduction.
Can you try doing nuxi upgrade --clean
it might be a cache / dependency conflict issue.
In terms of Stackblitz I think that's a bug on their end, for some reason the don't respect the tsconfig.json in the server directory.
Hi! I get the same issue, both locally and on production. nuxt upgrade --clean
did not help, unfortunately.
Please check you have a tsconfig.json in your server folder pointing to the nitro types
{
"extends": "../.nuxt/tsconfig.server.json"
}
đ The bug
asSitemapUrl
ordefineSitemapEventHandler
đ ī¸ To reproduce
https://stackblitz.com/edit/github-qjnbzv?file=server%2Fapi%2Fsitemap.ts
đ Expected behavior
according to the docs, should be importable from
#imports
âšī¸ Additional context
No response