TypeError: Cannot set property promises of #<Object> which has only a getter
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 211
- Forks
- 82
- PR merge metrics
- No merged PRs in 30d
Description
When start docker-compose
api-example | /usr/server/node_modules/impress/lib/deps.js:95
api-example | node.timers.promises = require('node:timers/promises');
api-example | ^
api-example |
api-example | TypeError: Cannot set property promises of #<Object> which has only a getter
api-example | at Object.<anonymous> (/usr/server/node_modules/impress/lib/deps.js:95:22)
api-example | at Module._compile (node:internal/modules/cjs/loader:1369:14)
api-example | at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
api-example | at Module.load (node:internal/modules/cjs/loader:1206:32)
api-example | at Module._load (node:internal/modules/cjs/loader:1022:12)
api-example | at Module.require (node:internal/modules/cjs/loader:1231:19)
api-example | at require (node:internal/modules/helpers:179:18)
api-example | at Object.<anonymous> (/usr/server/node_modules/impress/lib/planner.js:3:32)
api-example | at Module._compile (node:internal/modules/cjs/loader:1369:14)
api-example | at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
api-example |
api-example | Node.js v20.12.1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read impress/lib/deps.js at line 95 and rerun the example with docker-compose under Node.js v20.12.1 to reproduce the reported startup failure. Done means the API example starts without this TypeError; verify the container logs no longer show the stack trace.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker-compose, javascript, nodejs
- Domain
- backend, devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100