Skip to content

i always get this error fetch is not defined when submit the domain  #36

Open
@KressIsMee

Description

@KressIsMee

npm run index domain.com

[email protected] index
ts-node ./src/cli.ts domain.com

🔎 Processing site: sc-domain:domain.com
/seo/google-indexing-script/src/shared/utils.ts:19
const response = await fetch(url, options);
^
ReferenceError: fetch is not defined
at fetchRetry (/seo/google-indexing-script/src/shared/utils.ts:19:22)
at fetchRetry (seo/google-indexing-script/src/shared/utils.ts:29:12)
at fetchRetry (/seo/google-indexing-script/src/shared/utils.ts:29:12)
at fetchRetry (/seo/google-indexing-script/src/shared/utils.ts:29:12)
at fetchRetry (/seo/google-indexing-script/src/shared/utils.ts:29:12)
at fetchRetry (/seo/google-indexing-script/src/shared/utils.ts:29:12)
at getSitemapsList (/seo/google-indexing-script/src/shared/sitemap.ts:8:36)
at getSitemapPages (/seo/google-indexing-script/src/shared/sitemap.ts:38:26)
at index (/seo/google-indexing-script/src/index.ts:50:50)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions