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

medium-sdk seems absent from modules #4

Closed
AyymericArn opened this issue Nov 29, 2021 · 9 comments
Closed

medium-sdk seems absent from modules #4

AyymericArn opened this issue Nov 29, 2021 · 9 comments

Comments

@AyymericArn
Copy link

AyymericArn commented Nov 29, 2021

Hello, thanks for this useful action. When using it, I faced the following error :

Require stack:
- /home/runner/work/_actions/infraway/post-medium-action/v1.5.0/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
    at Function.Module._load (internal/modules/cjs/loader.js:690:27)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/runner/work/_actions/infraway/post-medium-action/v1.5.0/index.js:2:13)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/runner/work/_actions/infraway/post-medium-action/v1.5.0/index.js'
  ]
}

Maybe I misconcieve something about GH actions but I was thinking I had no installation to proceed in my own .yml file. Is the module lacking in the modules of the action template ? I saw it was not maintained anymore, do you think it is related to my issue ?

@higgins
Copy link

higgins commented Dec 19, 2021

Hey @maZahaca, I finally got around to integrating this (thanks again for your patch on #3)

I'm getting the same error as @AyymericArn ; any ideas? Maybe @redcode/medium-sdk wasn't bundled with the shipped package?

Run InfraWay/post-medium-action@v1.5.0
internal/modules/cjs/loader.js:800
    throw err;
    ^

Error: Cannot find module '@redcode/medium-sdk'
Require stack:
- /home/runner/work/_actions/InfraWay/post-medium-action/v1.5.0/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
    at Function.Module._load (internal/modules/cjs/loader.js:690:27)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/runner/work/_actions/InfraWay/post-medium-action/v1.5.0/index.js:2:13)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/runner/work/_actions/InfraWay/post-medium-action/v1.5.0/index.js'
  ]
}

@AseiSugiyama
Copy link

I faced the same issue. This Action seems to be useful and it would be great if I can use this action in my CI/CD.

internal/modules/cjs/loader.js:800
    throw err;
    ^

Error: Cannot find module '@redcode/medium-sdk'
Require stack:
- /home/runner/work/_actions/InfraWay/post-medium-action/v1.5.0/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
    at Function.Module._load (internal/modules/cjs/loader.js:690:27)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/runner/work/_actions/InfraWay/post-medium-action/v1.5.0/index.js:2:13)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/runner/work/_actions/InfraWay/post-medium-action/v1.5.0/index.js'
  ]
}

@ksingh7
Copy link

ksingh7 commented Feb 7, 2022

@maZahaca

image

@Nevvulo
Copy link

Nevvulo commented Feb 8, 2022

Also experiencing the same issue. Tried to manually install @redcode/medium-sdk but didn't have much luck - this is blocking me from using the action at all

@maZahaca
Copy link
Member

maZahaca commented Feb 8, 2022

Thanks for reporting, I will have a look shortly ✋

@maZahaca
Copy link
Member

maZahaca commented Feb 8, 2022

All submodules should be just be placed withing an action, let me check it

@maZahaca
Copy link
Member

maZahaca commented Feb 8, 2022

Apologize for the issue 🙏
I've missed this module to be pushed.
Now it's fixed and tested in v1.6.0

@maZahaca
Copy link
Member

maZahaca commented Feb 8, 2022

@AyymericArn I appreciate if you could review this

@maZahaca
Copy link
Member

Closing for now, feel free to reopen if reproduced

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

No branches or pull requests

6 participants