hosseinmd / prettier-plugin-jsdoc

A Prettier plugin to format JSDoc comments.
MIT License
228 stars 29 forks source link

Broken internal import with release `1.0.3` #209

Closed iolyd closed 11 months ago

iolyd commented 11 months ago

Bug description

After updating to the latest version (1.0.3), attempting to format a document with prettier yields:

Cannot find module '/[omitted]/node_modules/.pnpm/prettier-plugin-jsdoc@1.0.3_prettier@3.0.3/node_modules/prettier-plugin-jsdoc/dist/parser.js' imported from /[omitted]/node_modules/.pnpm/prettier-plugin-jsdoc@1.0.3_prettier@3.0.3/node_modules/prettier-plugin-jsdoc/dist/index.js

Reverting back to 1.0.2 fixes this error.

Additionnal info

This is happening in a SvelteKit project scaffolded with a pnpm repo.

panva commented 11 months ago

Same here, not on all repos tho

reproduce with

gh repo clone panva/oauth4webapi
npm ci
npm install prettier-plugin-jsdoc@1.0.3
npm run format
[error] Cannot find module '/Users/panva/repo/oauth4webapi/node_modules/prettier-plugin-jsdoc/dist/parser.js' imported from /Users/panva/repo/oauth4webapi/node_modules/prettier-plugin-jsdoc/dist/index.js
hosseinmd commented 11 months ago

fixed: v1.0.4