lo1tuma / eslint-plugin-mocha

ESLint rules for mocha
MIT License
279 stars 61 forks source link

Issue within ESM module #332

Closed brettz9 closed 1 year ago

brettz9 commented 1 year ago

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 https://github.com/lo1tuma/eslint-plugin-mocha/issues/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

brettz9 commented 1 year ago

Confused myself, sorry. Apparently needed an upgrade.