According to an open issue on eslint-plugin-import, the eslint-plugin-import cannot recognise the exports definition in package.json and therefore reports the @ui5/webcomponents-cypress-commands import as unresolved.
We encountered this problem while trying to integrate @ui5/webcomponents-cypress-commands with pex-client.
Expected Behaviour
The eslint-plugin-import should be able to recognise the @ui5/webcomponents-cypress-commands import.
Describe the bug
According to an open issue on eslint-plugin-import, the eslint-plugin-import cannot recognise the
exports
definition inpackage.json
and therefore reports the@ui5/webcomponents-cypress-commands
import as unresolved.We encountered this problem while trying to integrate
@ui5/webcomponents-cypress-commands
with pex-client.Expected Behaviour
The eslint-plugin-import should be able to recognise the
@ui5/webcomponents-cypress-commands
import.Potential solution: Add a
main
inpackage.json
for backwards compatibility. https://github.com/SAP/ui5-webcomponents-react/blob/main/packages/cypress-commands/package.jsonScreenshots or Videos
UI5 Web Components for React Version
1.18.0
UI5 Web Components Version
1.16.0
Operating System
MacOS
Declaration