hosseinmd / prettier-plugin-jsdoc

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

ES module error after upgrading to 0.4.1 #174

Closed curthipster closed 2 years ago

curthipster commented 2 years ago

After upgrading to 0.4.1, prettier is failing with the following error:

% ./node_modules/.bin/prettier . --check
[error] require() of ES Module [path redacted]/node_modules/mdast-util-from-markdown/index.js from [path redacted]/node_modules/prettier-plugin-jsdoc/dist/index.js not supported.
[error] Instead change the require of [path redacted]/node_modules/mdast-util-from-markdown/index.js in [path redacted]/node_modules/prettier-plugin-jsdoc/dist/index.js to a dynamic import() which is available in all CommonJS modules.
cailloumajor commented 2 years ago

Version 0.4.1 looks like a phantom release: there is no mention of it in the repository (commit history, changelog, version property in package.json, ...). I would argue (at least for myself) to not update to it.

hosseinmd commented 2 years ago

Fixed: v0.4.2