pr-lint-action icon indicating copy to clipboard operation
pr-lint-action copied to clipboard

Action is failing with node v22 - Cannot find module 'actions-toolkit'

Open vancityliam opened this issue 7 months ago • 0 comments

I'm currently seeing the following error when running this action.

Error: Cannot find module 'actions-toolkit'
Require stack:
- /index.js
  ...
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/index.js' ]

It might be related to the fact that the node:slim Docker image is used, which has recently updated to node version 22.5. If this action is incompatible with the new node version, then perhaps the version of the image could be fixed to v20 until it is sorted. I'm not 100% sure that this is the case, but it's the main change that I can see, as this package hasn't been updated for a while.

vancityliam avatar Jul 18 '24 20:07 vancityliam