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
When using eslint.config.ts config with --flag unstable_ts_config, I get the following error :
eslint --flag unstable_ts_config .
Oops! Something went wrong! :(
ESLint: 9.9.1
Error: No "exports" main defined in /private/tmp/eslint-markdown-ts-issue/node_modules/@eslint/markdown/package.json
at new NodeError (node:internal/errors:405:5)
at exportsNotFound (node:internal/modules/esm/resolve:366:10)
at packageExportsResolve (node:internal/modules/esm/resolve:656:13)
at resolveExports (node:internal/modules/cjs/loader:590:36)
at Module._findPath (node:internal/modules/cjs/loader:664:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1126:27)
at Function.resolve (node:internal/modules/helpers:188:19)
at _resolve (/private/tmp/eslint-markdown-ts-issue/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:241814)
at jiti (/private/tmp/eslint-markdown-ts-issue/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:244531)
at /private/tmp/eslint-markdown-ts-issue/eslint.config.ts:1:202
at evalModule (/private/tmp/eslint-markdown-ts-issue/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:247313)
at jiti (/private/tmp/eslint-markdown-ts-issue/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:245241)
at /private/tmp/eslint-markdown-ts-issue/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:248272
at Generator.next (<anonymous>)
at /private/tmp/eslint-markdown-ts-issue/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:238153
at new Promise (<anonymous>)
at __awaiter (/private/tmp/eslint-markdown-ts-issue/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:237714)
at jiti.import (/private/tmp/eslint-markdown-ts-issue/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:248217)
at loadFlatConfigFile (/private/tmp/eslint-markdown-ts-issue/node_modules/.pnpm/[email protected][email protected]/node_modules/eslint/lib/eslint/eslint.js:383:41)
at async calculateConfigArray (/private/tmp/eslint-markdown-ts-issue/node_modules/.pnpm/[email protected][email protected]/node_modules/eslint/lib/eslint/eslint.js:473:28)
at async ESLint.lintFiles (/private/tmp/eslint-markdown-ts-issue/node_modules/.pnpm/[email protected][email protected]/node_modules/eslint/lib/eslint/eslint.js:922:25)
at async Object.execute (/private/tmp/eslint-markdown-ts-issue/node_modules/.pnpm/[email protected][email protected]/node_modules/eslint/lib/cli.js:502:23)
at async main (/private/tmp/eslint-markdown-ts-issue/node_modules/.pnpm/[email protected][email protected]/node_modules/eslint/bin/eslint.js:153:22)
Environment
ESLint version: 9.9.1
@eslint/markdown version: 6.0.0
Node version: v18.20.2
npm version: 10.5.0
Operating System: macOS
Which language are you using?
commonmark
What did you do?
Please check the reproducible link below
What did you expect to happen?
No error
What actually happened?
When using
eslint.config.ts
config with--flag unstable_ts_config
, I get the following error :Link to Minimal Reproducible Example
https://stackblitz.com/github/issueset/eslint-markdown-ts-issue
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: