Skip to content

" RangeError: Maximum call stack size exceeded" with prettier-plugin-jsdoc #424

@keiches

Description

@keiches

What version of prettier-plugin-tailwindcss are you using?

v0.7.2

What version of Tailwind CSS are you using?

v4.1.7

What version of Node.js are you using?

v22.18.0

What package manager are you using?

pnpm

What operating system are you using?

macOS

Reproduction URL

A public GitHub repo that includes a minimal reproduction of the bug. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private/confidential, since we want a link to a separate, isolated reproduction anyways. Unfortunately we can't provide support without a reproduction, and your issue will be closed with no comment if this is not provided.

Describe your issue

ESLint v3.38.0, 3.39.0, 3.39.1
Prettier v3.74
prettier-plugin-jsdoc v1.7.1, 1.8.0

When it uses with "prettier-plugin-jsdoc" then, has below errors.

$ eslint .

Oops! Something went wrong! :(

ESLint: 9.39.1

RangeError: Maximum call stack size exceeded
    at findPluginByParser (file:///.../sample/node_modules/.pnpm/[email protected][email protected]/node_modules/prettier-plugin-jsdoc/dist/utils.js:162:28)
    at Object.jsDocPreprocess [as preprocess] (file:///.../sample/node_modules/.pnpm/[email protected][email protected]/node_modules/prettier-plugin-jsdoc/dist/index.js:257:36)
    at preprocess (file:///.../sample/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:3512:11129)
    at Object.jsDocPreprocess [as preprocess] (file:///.../sample/node_modules/.pnpm/[email protected][email protected]/node_modules/prettier-plugin-jsdoc/dist/index.js:264:33)
    at preprocess (file:///.../sample/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:3512:11129)
    at Object.jsDocPreprocess [as preprocess] (file:///.../sample/node_modules/.pnpm/[email protected][email protected]/node_modules/prettier-plugin-jsdoc/dist/index.js:264:33)
    at preprocess (file:///Volumes/Data%20HD/Projects/SPTek/sec_jip/nextssp/web/host/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:3512:11129)
    at Object.jsDocPreprocess [as preprocess] (file:///Volumes/Data%20HD/Projects/SPTek/sec_jip/nextssp/web/host/node_modules/.pnpm/[email protected][email protected]/node_modules/prettier-plugin-jsdoc/dist/index.js:264:33)
    at preprocess (file:///.../sample/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:3512:11129)
    at Object.jsDocPreprocess [as preprocess] (file:///.../sample/node_modules/.pnpm/[email protected][email protected]/node_modules/prettier-plugin-jsdoc/dist/index.js:264:33)
 ELIFECYCLE  Command failed with exit code 2.

Process finished with exit code 2
  • prettier.config.mjs
const config = {
  singleQuote: true,
  semi: true,
  trailingComma: 'all',
  printWidth: 180,
  tabWidth: 2,
  useTabs: false,
  endOfLine: 'lf',
  bracketSpacing: true,
  arrowParens: 'always',
  plugins: [
    'prettier-plugin-jsdoc',
    'prettier-plugin-tailwindcss',
  ],
  // but there is no different
  plugins: [
    'prettier-plugin-tailwindcss',
    'prettier-plugin-jsdoc',
  ],
};

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions