[GH-ISSUE #281] BUG - 'fromJson' is not defined ReferenceError #197

Closed
opened 2026-03-01 21:41:07 +03:00 by kerem · 2 comments
Owner

Originally created by @Demmonius on GitHub (Jun 17, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/281

Hi everyone,

First of all, thank you for this project it's useful.

I'm using Lighthouse to test my website and then I comment in a PR the report.
I get the report from the step output but I need to "jsonify" it, by using fromJson function.

When I use:

${{ fromJson(steps.lighthouseCheck.outputs.lighthouseCheckResults).data[0].scores.accessibility }}

I get this error: fromJson isn't defined ReferenceError: 'fromJson' is not defined.
I also tried fromJSON but I got the same error.

This action fully works in Github Action.

Do you know how to fix this?

Thank you :)

Originally created by @Demmonius on GitHub (Jun 17, 2020). Original GitHub issue: https://github.com/nektos/act/issues/281 Hi everyone, First of all, thank you for this project it's useful. I'm using Lighthouse to test my website and then I comment in a PR the report. I get the report from the _step output_ but I need to "jsonify" it, by using **fromJson** function. When I use: ``` ${{ fromJson(steps.lighthouseCheck.outputs.lighthouseCheckResults).data[0].scores.accessibility }} ``` I get this error: `fromJson isn't defined ReferenceError: 'fromJson' is not defined`. I also tried **fromJSON** but I got the same error. This action fully works in Github Action. Do you know how to fix this? Thank you :)
kerem 2026-03-01 21:41:07 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@github-actions[bot] commented on GitHub (Aug 17, 2020):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:674598785 --> @github-actions[bot] commented on GitHub (Aug 17, 2020): Issue is stale and will be closed in 7 days unless there is new activity
Author
Owner

@theowenyoung commented on GitHub (Sep 1, 2020):

same problem...

<!-- gh-comment-id:684833769 --> @theowenyoung commented on GitHub (Sep 1, 2020): same problem...
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#197
No description provided.