Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing the Greetings issue #114

Open
DiddiLeija opened this issue Oct 3, 2022 · 0 comments
Open

Fixing the Greetings issue #114

DiddiLeija opened this issue Oct 3, 2022 · 0 comments
Labels
bug Something isn't working Related to bots/apps Any issue/PR/discussion about GitHub apps and bots. Related to GitHub Anything related to the GitHub functions/sections

Comments

@DiddiLeija
Copy link
Owner

Describe the bug

Each time I open a PR or an issue, the "Greetings" CI step fails for a reason.

To Reproduce

Go open an issue, or my recent PRs' CI (e.g. #111)

Expected behavior

In my case, this workflow should pass without doing anything, because I'm not a new user.

Full output

/usr/bin/docker run --name e3f4ee6880[9](https://github.com/DiddiLeija/text_formatter/actions/runs/3174323349/jobs/5170969263#step:3:10)cd3413b8aeb9507d065f512_cc47cd --label 5364e3 --workdir /github/workspace --rm -e "INPUT_REPO-TOKEN" -e "INPUT_ISSUE-MESSAGE" -e "INPUT_PR-MESSAGE" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/text_formatter/text_formatter":"/github/workspace" 5364e3:f4ee68809cd3413b8aeb9507d065f512
internal/modules/cjs/loader.js:1216
      throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath);
      ^

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /node_modules/@octokit/graphql/index.js
require() of ES modules is not supported.
require() of /node_modules/@octokit/graphql/index.js from /node_modules/@actions/github/lib/github.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /node_modules/@octokit/graphql/package.json.

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1216:13)
    at Module.load (internal/modules/cjs/loader.js:[10](https://github.com/DiddiLeija/text_formatter/actions/runs/3174323349/jobs/5170969263#step:3:11)49:32)
    at Function.Module._load (internal/modules/cjs/loader.js:937:14)
    at Module.require (internal/modules/cjs/loader.js:1089:19)
    at require (internal/modules/cjs/helpers.js:73:18)
    at Object.<anonymous> (/node_modules/@actions/github/lib/github.js:14:19)
    at Module._compile (internal/modules/cjs/loader.js:[12](https://github.com/DiddiLeija/text_formatter/actions/runs/3174323349/jobs/5170969263#step:3:13)00:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
    at Module.load (internal/modules/cjs/loader.js:1049:32)
    at Function.Module._load (internal/modules/cjs/loader.js:937:[14](https://github.com/DiddiLeija/text_formatter/actions/runs/3174323349/jobs/5170969263#step:3:15)) {
  code: 'ERR_REQUIRE_ESM'
}

(From https://github.com/DiddiLeija/text_formatter/actions/runs/3174323349/jobs/5170969263)

Additional context

Maybe the expected config changed recently?

@DiddiLeija DiddiLeija added bug Something isn't working Related to GitHub Anything related to the GitHub functions/sections Related to bots/apps Any issue/PR/discussion about GitHub apps and bots. labels Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Related to bots/apps Any issue/PR/discussion about GitHub apps and bots. Related to GitHub Anything related to the GitHub functions/sections
Projects
None yet
Development

No branches or pull requests

1 participant