actions / actions/toolkit

Error: `Cannot destructure property 'access' of 'fs_1.promises' as it is undefined.`

Open
#1,075 4 comments 3 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

Describe the bug
Hi, after an update of @actions/core from 1.6.0 to 1.7.0, I got an error when trying to run my jest tests.

Happy to provide any more info, just don't know what you'd need. Thanks!

To Reproduce

  1. Run jest tests including calls to @actions/core
  2. See them error out, for example here

Expected behavior
No error.

Desktop (please complete the following information):

  • OS: Debian testing
  • Node 16
  • Version 1.7.0 as well as 1.7.0

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 by reproducing the failure with Jest tests that call @actions/core, comparing versions 1.6.0 and 1.7.0 on Node 16. Trace the fs_1.promises destructuring error in the @actions/core package and verify the fix by rerunning the affected Jest tests without the error.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.