You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Config files like the following result in the extension erroring. Running eslint via the cli work fine.
import{tsImport}from"tsx/esm/api";constlocal=awaittsImport("./src/index.ts",import.meta.url).then((r)=>r.default,);constconfigs=[// ...);// Use our local version of the plugin.for(constconfigofconfigs){if(config?.plugins?.["my-plugin"]!==undefined){config.plugins["my-plugin"]=local;}}exportdefaultconfigs;
Output:
[Info ] ESLint server is starting.
[Info ] ESLint server running in node v20.14.0
[Info ] ESLint server is running.
[Info ] ESLint library loaded from: /path/to/project/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/api.js
[Error] An unexpected error occurred:
[Error] TransformError: Cannot read properties of undefined (reading 'size')
at normalizeSpawnArguments (node:child_process:726:34)
at Object.spawn (node:child_process:792:13)
at ensureServiceIsRunning (/path/to/project/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1975:29)
at transform (/path/to/project/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1875:37)
at file:///path/to/project/node_modules/.pnpm/[email protected]/node_modules/tsx/dist/index-DeKCL_WS.mjs:16:2654
at applyTransformers (file:///path/to/project/node_modules/.pnpm/[email protected]/node_modules/tsx/dist/index-DeKCL_WS.mjs:16:1266)
at transform (file:///path/to/project/node_modules/.pnpm/[email protected]/node_modules/tsx/dist/index-DeKCL_WS.mjs:16:2601)
at load (file:///path/to/project/node_modules/.pnpm/[email protected]/node_modules/tsx/dist/esm/index.mjs?1724634499253:2:2245)
at async nextLoad (node:internal/modules/esm/hooks:866:22)
at async Hooks.load (node:internal/modules/esm/hooks:449:20)
The text was updated successfully, but these errors were encountered:
@RebeccaStevens can you please provide me with a GitHub repository I can clone that contains a minimal setup demoing the problem. This can be caused by many things and without a good reproducible case it is hard to say why it fails.
Config files like the following result in the extension erroring. Running eslint via the cli work fine.
Output:
The text was updated successfully, but these errors were encountered: