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

Error: Dynamic require of "os" is not supported #25

Closed
parkerbxyz opened this issue Apr 9, 2024 · 4 comments · Fixed by #26
Closed

Error: Dynamic require of "os" is not supported #25

parkerbxyz opened this issue Apr 9, 2024 · 4 comments · Fixed by #26
Assignees

Comments

@parkerbxyz
Copy link
Owner

parkerbxyz commented Apr 9, 2024

Could you plz tell me what I'm doing wrong there?

file:///home/runner/work/_actions/parkerbxyz/suggest-changes/v1/dist/index.js:12
  throw Error('Dynamic require of "' + x + '" is not supported');
        ^

Error: Dynamic require of "os" is not supported
    at file:///home/runner/work/_actions/parkerbxyz/suggest-changes/v1/dist/index.js:12:9
    at node_modules/@actions/core/lib/command.js (file:///home/runner/work/_actions/parkerbxyz/suggest-changes/v1/dist/index.js:108:27)
    at __require2 (file:///home/runner/work/_actions/parkerbxyz/suggest-changes/v1/dist/index.js:18:50)
    at node_modules/@actions/core/lib/core.js (file:///home/runner/work/_actions/parkerbxyz/suggest-changes/v1/dist/index.js:18302:21)
    at __require2 (file:///home/runner/work/_actions/parkerbxyz/suggest-changes/v1/dist/index.js:18:50)
    at file:///home/runner/work/_actions/parkerbxyz/suggest-changes/v1/dist/index.js:40139:27
    at ModuleJob.run (node:internal/modules/esm/module_job:217:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
    at async loadESM (node:internal/process/esm_loader:34:7)
    at async handleMainPromise (node:internal/modules/run_main:66:12)

Node.js v20.8.1

Originally posted by @boozook in #24

@parkerbxyz
Copy link
Owner Author

Looks like this might be a bug in the latest version. Could you try using a previous version of this action to see if you get the same error?

- uses: parkerbxyz/suggest-changes@v1.0.2

@parkerbxyz
Copy link
Owner Author

This should be resolved now in the latest release: https://github.com/parkerbxyz/suggest-changes/releases/tag/v1.0.4

@boozook
Copy link

boozook commented Apr 9, 2024

@parkerbxyz Yup, thanks, seems to 1.0.2 works fine. 👍

@boozook
Copy link

boozook commented Apr 9, 2024

This should be resolved now in the latest release...

Agree, just tested 1.0.4 - works 👍, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants