harmonyos-dev / harmonyos-dev/setup-harmonyos-sdk
TypeError: Cannot read properties of undefined (reading 'find')
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 7
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
`Run harmonyos-dev/setup-harmonyos-sdk@0.2.0
with:
version: 2.0.0.2
Downloading HarmonyOS SDK...
/Users/runner/work/_actions/harmonyos-dev/setup-harmonyos-sdk/0.2.0/dist/index.js:5599
const asset = assets.find(
^
TypeError: Cannot read properties of undefined (reading 'find')
at run (/Users/runner/work/_actions/harmonyos-dev/setup-harmonyos-sdk/0.2.0/dist/index.js:5599:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v20.18.0`
https://github.com/eveloki/ohtotptoken/actions/runs/12006296381/job/33464553066
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 with the linked GitHub Actions run and inspect dist/index.js around line 5599, where assets.find fails during setup for version 2.0.0.2. Trace the SDK download response leading to the undefined assets value. Done means the action completes SDK setup for the reported workflow and version without this TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, javascript
- Domain
- ci-cd, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100