hosseinmd / prettier-plugin-jsdoc

A Prettier plugin to format JSDoc comments.
MIT License
232 stars 28 forks source link

Broken internal import with release `1.0.3` #209

Closed emmbm closed 1 year ago

emmbm commented 1 year 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 1 year 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 1 year ago

fixed: v1.0.4