-
Notifications
You must be signed in to change notification settings - Fork 8
Prettier plugin causes crashes in some files #91
Copy link
Copy link
Open
Description
Repro repo: https://github.com/Faithfinder/pandabox-prettier-bug
subjects.ts
[error] subjects.ts: TypeError: Cannot read properties of undefined (reading 'range')
[error] at j (file:///Users/dmitrii/source/app-ui-worktrees/fix-prettier/node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/plugins/estree.mjs:5:1356)
[error] at Ra (file:///Users/dmitrii/source/app-ui-worktrees/fix-prettier/node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/plugins/estree.mjs:36:76594)
[error] at Na (file:///Users/dmitrii/source/app-ui-worktrees/fix-prettier/node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/plugins/estree.mjs:36:83621)
[error] at lm (file:///Users/dmitrii/source/app-ui-worktrees/fix-prettier/node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/plugins/estree.mjs:36:85423)
[error] at Object.ym (file:///Users/dmitrii/source/app-ui-worktrees/fix-prettier/node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/plugins/estree.mjs:36:85831)
[error] at callPluginPrintFunction (file:///Users/dmitrii/source/app-ui-worktrees/fix-prettier/node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/index.mjs:16929:20)
[error] at mainPrintInternal (file:///Users/dmitrii/source/app-ui-worktrees/fix-prettier/node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/index.mjs:16912:18)
[error] at file:///Users/dmitrii/source/app-ui-worktrees/fix-prettier/node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/index.mjs:16900:30
[error] at AstPath.call (file:///Users/dmitrii/source/app-ui-worktrees/fix-prettier/node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/index.mjs:15280:14)
[error] at mainPrint (file:///Users/dmitrii/source/app-ui-worktrees/fix-prettier/node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/index.mjs:16900:19)
ELIFECYCLE Command failed with exit code 2.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels