DEV Community

Discussion on: Create sitemaps for a multi-language, multi-domain, URL-translated, static Next.js site

Collapse
 
pariola_droid profile image
Pariola

Hi Marco, tried this and i wasn't getting it right

Here is what i got:

`node:internal/fs/utils:921
throw new ERR_INVALID_ARG_TYPE(
^

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Promise`

tried using for...of loop instead too, still the same