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
"exports" field seems to be ignored by eslint-import-resolver-node, resulting with unexpected error thrown by import/no-unresolved rule even though Node is capable of resolving the paths.
🐛 Bug Report
"exports" field seems to be ignored by eslint-import-resolver-node, resulting with unexpected error thrown by import/no-unresolved rule even though Node is capable of resolving the paths.
https://nodejs.org/api/esm.html#esm_package_entry_points
To Reproduce
Steps to reproduce the behavior:
I have a simple utils package in my workspace, that's shaped like this:
package.json:
This allows me to use it in my main project by importing utils like this:
This works both in native ES modules environment in Node 14, and in code transpiled by Babel. But this line is flagged by import/no-unresolved.
Expected behavior
"exports" to be respected and understood by eslint-import-resolver
Link to repo
https://github.com/wojtekmaj/resolve-exports-issue
envinfo
The text was updated successfully, but these errors were encountered: