Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
Suggestion
I've seen this in a few PRs. Example:#6091 ->https://github.com/typescript-eslint/typescript-eslint/actions/runs/3716238438/jobs/6302406471:
Run yarn test-integration yarn test-integration shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} env: PRIMARY_NODE_VERSION: 18 yarn_cache_dir: /home/runner/.cache/yarn/v6 CI: trueyarn run v1.[2](https://github.com/typescript-eslint/typescript-eslint/actions/runs/3716238438/jobs/6302406471#step:5:2)2.19$ yarn jest -c ./tests/integration/jest.config.js$ /home/runner/work/typescript-eslint/typescript-eslint/node_modules/.bin/jest -c ./tests/integration/jest.config.jsError: Cannot find module '../dist-raw/node-cjs-loader-utils'Require stack:- /home/runner/work/typescript-eslint/typescript-eslint/node_modules/ts-node/dist/index.js- /home/runner/work/typescript-eslint/typescript-eslint/tests/integration/jest.config.js- /home/runner/work/typescript-eslint/typescript-eslint/node_modules/jest-util/build/requireOrImportModule.js- /home/runner/work/typescript-eslint/typescript-eslint/node_modules/jest-util/build/index.js- /home/runner/work/typescript-eslint/typescript-eslint/node_modules/jest-config/build/getCacheDirectory.js- /home/runner/work/typescript-eslint/typescript-eslint/node_modules/jest-config/build/Defaults.js- /home/runner/work/typescript-eslint/typescript-eslint/node_modules/jest-config/build/normalize.js- /home/runner/work/typescript-eslint/typescript-eslint/node_modules/jest-config/build/index.js- /home/runner/work/typescript-eslint/typescript-eslint/node_modules/jest-cli/build/init/index.js- /home/runner/work/typescript-eslint/typescript-eslint/node_modules/jest-cli/build/cli/index.js- /home/runner/work/typescript-eslint/typescript-eslint/node_modules/jest-cli/build/index.js- /home/runner/work/typescript-eslint/typescript-eslint/node_modules/jest-cli/bin/jest.js- /home/runner/work/typescript-eslint/typescript-eslint/node_modules/jest/bin/jest.js at Module._resolveFilename (node:internal/modules/cjs/loader:995:15) at Module._load (node:internal/modules/cjs/loader:841:27) at Module.require (node:internal/modules/cjs/loader:1061:19) at require (node:internal/modules/cjs/helpers:10[3](https://github.com/typescript-eslint/typescript-eslint/actions/runs/3716238438/jobs/6302406471#step:5:3):18) at Object.<anonymous> (/home/runner/work/typescript-eslint/typescript-eslint/node_modules/ts-node/dist/index.js:50:7) at Module._compile (node:internal/modules/cjs/loader:1159:1[4](https://github.com/typescript-eslint/typescript-eslint/actions/runs/3716238438/jobs/6302406471#step:5:4)) at Module._extensions..js (node:internal/modules/cjs/loader:1213:10) at Module.load (node:internal/modules/cjs/loader:1037:32) at Module._load (node:internal/modules/cjs/loader:878:12) at Module.require (node:internal/modules/cjs/loader:10[6](https://github.com/typescript-eslint/typescript-eslint/actions/runs/3716238438/jobs/6302406471#step:5:6)1:1[9](https://github.com/typescript-eslint/typescript-eslint/actions/runs/3716238438/jobs/6302406471#step:5:10))error Command failed with exit code 1.
I wonder if it's an issue with thenode_modules
cache? This failure only happens in CI, not locally.
In#5251 I switched tohttps://github.com/esbuild-kit/tsx without issue. But it'd be nice to know why ts-node is crashing - especially if it's a caching issue.