-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
Description
Package name
eslint-plugin, eslint-config
Package version
13.3.0
Reproduction steps
Associated to the comment: #3711 (comment)
- Create a
moduletype package developed in.mtsformat in a monorepo (ex: @o3r/my-example). - Exposed the generated
.mjsfiles via package.json'smainandexportsfields. - Refer to the entrypoint file in a tsconfig.json's
pathsmapping - Import the package in a second
moduletype package.mtsfile (ex:import * from '@o3r/my-example';)
Current result
The EsLint import/no-unresolved rule raises an error.
Expected result
Correctly resolve the dependency
Additional comments
Unsatisfying workarounds:
- Disable the rule at
importinstruction:
// eslint-disable-next-line import/no-unresolved -- Cannot resolve mjs file in current setup`- import the inner package
mjsfile instead of rely on package.json (or tsconfig paths) links:
from '@o3r/my-example';will become
from '@o3r/my-example/src/public_api.mjs';Reactions are currently unavailable