You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import katex from "katex"; is valid according to both native Node.js and webpack. But eslint-import-resolver-webpack is unable to resolve it, leading to a spurious error Unable to resolve path to module 'katex'. This might have something to do with the exports map in katex/package.json.
The issue is that katex has entry points defined in exports that do not, for backwards compatibility, have corresponding files on the filesystem for older nodes to resolve.
This package uses resolve, and neither has support yet for exports. So, either katex will have to add those files (which it should anyways, since it doesn't declare engines.node, which means it probably works on every node version), or, you'll need to use import/ignore on that dependency until we're able to add that support.
import katex from "katex";
is valid according to both native Node.js and webpack. But eslint-import-resolver-webpack is unable to resolve it, leading to a spurious errorUnable to resolve path to module 'katex'
. This might have something to do with theexports
map inkatex/package.json
.Complete reproducible example:
src.js
.eslintrc.json
package.json
The text was updated successfully, but these errors were encountered: