lo1tuma/eslint-plugin-mocha

Issue within ESM module

Closed this issue · 1 comments

Hi,

I'm using eslint-plugin-mocha as a plugin within a type: "module" (native Node ESM in package.json) package and getting the following error:

Failed to load plugin 'mocha' declared in '.eslintrc.cjs#overrides[1]': Package subpath './src/find' is not defined by "exports" in /Users/brett/intl-dom/node_modules/ramda/package.json Referenced from: /Users/brett/intl-dom/.eslintrc.cjs

A similar issue appears to have been reported at #322 . In that issue, the resolution was to switch from ramda to rambda. I could look to a PR if you wanted to go that route. It looks like the latest version of ramda made some changes to exports which might have fixed things, but I don't see a release since that time.

Thanks!
Brett

Confused myself, sorry. Apparently needed an upgrade.