Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot set property SitemapItemStream of #<Object> which has only a getter #4469

Closed
1 task
egeres opened this issue Sep 11, 2023 · 2 comments
Closed
1 task
Labels

Comments

@egeres
Copy link

egeres commented Sep 11, 2023

What is the URL where the issue is happening

None

What browsers are you seeing the problem on?

No response

Describe the Bug

I just cloned the repo and ran npm install && npm run dev but I get the attached error below, I can't find information about this error on the repository

Output from browser console (if any)

λ npm run dev

roadmap.sh@0.0.1 dev
astro dev --port 3000

C:\Github\developer-roadmap\node_modules\sitemap\dist\index.js:13
exports.simpleSitemapAndIndex = exports.IndexObjectStreamToJSON = exports.XMLToSitemapIndexStream = exports.parseSitemapIndex = exports.ObjectStreamToJSON = exports.XMLToSitemapItemStream = exports.parseSitemap = exports.xmlLint = exports.ReadlineStream = exports.normalizeURL = exports.validateSMIOptions = exports.mergeStreams = exports.lineSeparatedURLsToSitemapOptions = exports.SitemapStream = exports.streamToPromise = exports.SitemapAndIndexStream = exports.SitemapIndexStream = exports.IndexTagNames = exports.SitemapItemStream = void 0;
^

TypeError: Cannot set property SitemapItemStream of # which has only a getter
at Object. (C:\Github\developer-roadmap\node_modules\sitemap\dist\index.js:13:537)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:130:18)
at Object. (C:\Github\developer-roadmap\node_modules\sitemap\dist\lib\sitemap-simple.js:4:17)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)

Node.js v20.6.0

Participation

  • I am willing to submit a pull request for this issue.

@egeres egeres added the bug label Sep 11, 2023
@ausgomez
Copy link
Contributor

this seems to be an issue with node 20.6.0 (current), can you try running it with LTS (18.17.1) ?

@egeres
Copy link
Author

egeres commented Sep 12, 2023

Yep, node issue! The latest version 20.6.1 fixed it!! nodejs/node#49500

@egeres egeres closed this as completed Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants