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

@v1.1: Error: Cannot find module '@actions/core' #70

Closed
ychen4-li opened this issue Jan 10, 2022 · 4 comments
Closed

@v1.1: Error: Cannot find module '@actions/core' #70

ychen4-li opened this issue Jan 10, 2022 · 4 comments
Assignees
Labels
bug Something isn't working P0 Action not working

Comments

@ychen4-li
Copy link

Hi there,

I am getting below error when running with @v1.1:

Error: Cannot find module '@actions/core'

Require stack:
- /actions-runner/_work/_actions/azure/sql-action/v1.1/lib/main.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> (/actions-runner/_work/_actions/azure/sql-action/v1.1/lib/main.js:34:27)
    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: [
    '/actions-runner/_work/_actions/azure/sql-action/v1.1/lib/main.js'
  ]
}

It seems like the node_modules directory is missing from the v1.1 release? Can you help to take a look?

Thanks,
Yi

@ychen4-li ychen4-li added the need-to-triage Requires investigation label Jan 10, 2022
@dzsquared
Copy link
Collaborator

Which environment/runner type is this occurring on?

@ychen4-li
Copy link
Author

Which environment/runner type is this occurring on?

self hosted runner with Ubuntu 20.04 LTS

@fnmarquez
Copy link

Same error here but with GitHub-hosted runner (Ubuntu 20.04.3 LTS)

@dzsquared dzsquared self-assigned this Jan 12, 2022
@dzsquared dzsquared added bug Something isn't working P0 Action not working and removed need-to-triage Requires investigation labels Jan 12, 2022
@dzsquared
Copy link
Collaborator

Fixed in v1.2, thank you for raising this issue! I'll be keeping an eye out here if you continue to experience troubles.
https://github.com/Azure/sql-action/releases/tag/v1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P0 Action not working
Projects
None yet
Development

No branches or pull requests

3 participants