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.
Hi,
I'm using
eslint-plugin-mocha
as a plugin within atype: "module"
(native Node ESM inpackage.json
) package and getting the following error: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