get error when using core inside react
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 5.9k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
I want to use core inside react app but I got
I tried to import it like this
import * as core from "@actions/core";
and
import core from "@actions/core";
Unable to resolve module os from /Users/runner/work/First-Mobile-App/First-Mobile-App/node_modules/@actions/core/lib/core.js: os could not be found within the project or in these directories:
node_modules
https://github.com/MoatazAbdAlmageed/First-Mobile-App/runs/5865299496?check_suite_focus=true
Contributor guide
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 @actions/core/lib/core.js and the linked workflow run to inspect the reported os resolution failure in the React environment. Determine whether @actions/core supports this runtime and identify the expected compatibility guidance or scope of a fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100