TypeError: attempted to get private field on non-instance
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 816
- Forks
- 88
- PR merge metrics
- No merged PRs in 30d
Description
When I run lage and it fails, I get this stack trace for some reason:
node:internal/event_target:1094
process.nextTick(() => { throw err; });
^
TypeError: attempted to get private field on non-instance
at l5e (path/to/project/.yarn/cache/lage-npm-2.13.0-4638554ef7-a3863a9730.zip/node_modules/lage/dist/lage.js:299:1556)
at sr (path/to/project/.yarn/cache/lage-npm-2.13.0-4638554ef7-a3863a9730.zip/node_modules/lage/dist/lage.js:299:1661)
at EventTarget.oee (path/to/project/.yarn/cache/lage-npm-2.13.0-4638554ef7-a3863a9730.zip/node_modules/lage/dist/lage.js:299:6031)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:820:20)
at EventTarget.dispatchEvent (node:internal/event_target:755:26)
at abortSignal (node:internal/abort_controller:370:10)
at AbortController.abort (node:internal/abort_controller:392:5)
at $de.onFail (path/to/project/.yarn/cache/lage-npm-2.13.0-4638554ef7-a3863a9730.zip/node_modules/lage/dist/lage.js:406:24036)
at $de.run (path/to/project/.yarn/cache/lage-npm-2.13.0-4638554ef7-a3863a9730.zip/node_modules/lage/dist/lage.js:407:521)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
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
Start by reproducing the failure by running lage in the reported Yarn setup. Inspect the generated lage/dist/lage.js stack location around line 299 and the abort path around line 406; done means the reported lage run no longer throws this TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100