eslint-plugin-vitest
eslint-plugin-vitest copied to clipboard
Results of weekly scheduled smoke test
Something went wrong. This is likely an internal error of eslint-remote-tester-run-action
.
Click to expand
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /github/workspace/eslint-remote-tester-runner-internal.config.ts
require() of ES modules is not supported.
require() of /github/workspace/eslint-remote-tester-runner-internal.config.ts from /github/workspace/node_modules/.pnpm/[email protected]_lr4dalshidornieccxpgw4j7yq/node_modules/eslint-remote-tester/dist/config/load.js is an ES module file as it is a .ts file whose nearest parent package.json contains "type": "module" which defines all .ts files in that package scope as ES modules.
Instead change the requiring code to use import(), or remove "type": "module" from /github/workspace/package.json.
at createErrRequireEsm (/github/workspace/node_modules/.pnpm/[email protected]_b34azymlfgei75qebilxzbqnze/node_modules/ts-node/dist-raw/node-internal-errors.js:46:15)
at assertScriptCanLoadAsCJSImpl (/github/workspace/node_modules/.pnpm/[email protected]_b34azymlfgei75qebilxzbqnze/node_modules/ts-node/dist-raw/node-internal-modules-cjs-loader.js:584:11)
at Object.require.extensions.<computed> [as .ts] (/github/workspace/node_modules/.pnpm/[email protected]_b34azymlfgei75qebilxzbqnze/node_modules/ts-node/src/index.ts:1610:5)
at Module.load (node:internal/modules/cjs/loader:1203:32)
at Function.Module._load (node:internal/modules/cjs/loader:1019:12)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18)
at loadTSConfig (/github/workspace/node_modules/.pnpm/[email protected]_lr4dalshidornieccxpgw4j7yq/node_modules/eslint-remote-tester/dist/config/load.js:21:48)
at loadConfig (/github/workspace/node_modules/.pnpm/[email protected]_lr4dalshidornieccxpgw4j7yq/node_modules/eslint-remote-tester/dist/config/load.js:28:41)
at runTester (/index.js:5935:14)