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
@ To Reproduce
Steps to reproduce the behavior:
When ever require semantic locator into a js file, and run it directly in node (without any other module resolver , like webpack , or even jest)
this log come along:
Error [ERR_INVALID_PACKAGE_TARGET]: Invalid "exports" main target "dist/src/semantic_locators.js" defined in the package config /xxx/node_modules/semantic-locator/package.json;
targets must start with "./"
Expected behavior
can be required successfully.
Screenshots
Environment (please complete the following information):
Describe the bug
Invalid exports path in package.json, cause require module failed.
According to this documentation , "All paths defined in the "exports" must be relative file URLs starting with ./.".
However we got
@
To Reproduce
Steps to reproduce the behavior:
When ever require semantic locator into a js file, and run it directly in node (without any other module resolver , like webpack , or even jest)
this log come along:
Expected behavior
can be required successfully.
Screenshots
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: