Skip to content
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

Bug: No "exports" main defined in /private/tmp/eslint-markdown-ts-issue/node_modules/@eslint/markdown/package.json #278

Closed
1 task done
ocavue opened this issue Sep 2, 2024 · 0 comments · Fixed by #279
Labels
accepted bug repro:yes Issues with a reproducible example

Comments

@ocavue
Copy link
Contributor

ocavue commented Sep 2, 2024

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 :

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)

Link to Minimal Reproducible Example

https://stackblitz.com/github/issueset/eslint-markdown-ts-issue

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

No response

@ocavue ocavue added bug repro:needed This issue should include a reproducible example labels Sep 2, 2024
@nzakas nzakas added accepted repro:yes Issues with a reproducible example and removed repro:needed This issue should include a reproducible example labels Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted bug repro:yes Issues with a reproducible example
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants