actions / actions/toolkit

get error when using core inside react

Open
#1,049 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.