Skip to content

Error message : Cannot find module 'tsconfig-paths/register' #617

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

Closed
laurentvasseurtekos opened this issue Dec 16, 2022 · 1 comment
Closed

Comments

@laurentvasseurtekos
Copy link

Hello, thank you for this Github action, it is really useful.

I currently have an error when I launch this github action in v5.

This is how I declare it in my github action workflow :

  commitlint:
    name: 'Lint Commit Messages'
    runs-on: ubuntu-22.04
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - uses: wagoid/commitlint-github-action@v5

You can find the error message below :

error running commitlint
Cannot find module 'tsconfig-paths/register'
Require stack:
- /node_modules/ts-node/dist/util.js
- /node_modules/ts-node/dist/index.js
- /node_modules/cosmiconfig-typescript-loader/dist/cjs/index.js
- /node_modules/@commitlint/load/lib/utils/load-config.js
- /node_modules/@commitlint/load/lib/load.js
- /run.js
Error: Cannot find module 'tsconfig-paths/register'
Require stack:
- /node_modules/ts-node/dist/util.js
- /node_modules/ts-node/dist/index.js
- /node_modules/cosmiconfig-typescript-loader/dist/cjs/index.js
- /node_modules/@commitlint/load/lib/utils/load-config.js
- /node_modules/@commitlint/load/lib/load.js
- /run.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:927:15)
    at Function.resolve (node:internal/modules/cjs/helpers:99:19)
    at projectLocalResolveHelper (/node_modules/ts-node/dist/util.js:117:24)
    at /node_modules/ts-node/dist/configuration.js:159:61
    at Array.map (<anonymous>)
    at readConfig (/node_modules/ts-node/dist/configuration.js:159:47)
    at findAndReadConfig (/node_modules/ts-node/dist/configuration.js:50:84)
    at create (/node_modules/ts-node/dist/index.js:146:69)
    at register (/node_modules/ts-node/dist/index.js:127:19)
    at TypeScriptLoader (/node_modules/cosmiconfig-typescript-loader/dist/cjs/index.js:52:54)

When I use the github action in v4, I don't have any issue.
Do you encounter the same problem ?

Thank you for your help

@wagoid
Copy link
Owner

wagoid commented Dec 19, 2022

Hi @laurentvasseurtekos, thanks for submitting this issue! You can see this comment explaining how to fix it: #560 (comment)

@wagoid wagoid closed this as completed Dec 19, 2022
PVermeer added a commit to PVermeer/dexie-addon-suite-monorepo that referenced this issue Jan 9, 2023
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

2 participants