bug: [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './screenshot' is not defined by "exports" in …/node_modules/@stencil/core/package.json #5906
Labels
Bug: Validated
This PR or Issue is verified to be a bug within Stencil
Prerequisites
Stencil Version
>= v4.19.0
Current Behavior
If we set a screenshot cnnector like told by the documentation https://stenciljs.com/docs/screenshot-connector
When run test with screensot :
stencil test --e2e --screenshot
This error appear
Expected Behavior
Run screenshot test as before without this error message.
System Info
Steps to Reproduce
Add a screenshot connector like the doc say https://stenciljs.com/docs/screenshot-connector#methods
Then run the command
run
stencil test --e2e --screenshot
Code Reproduction URL
https://github.com/ryuran/stencil-bugs/tree/screeshot-export-bug
Additional Information
The connector try to import
const { ScreenshotLocalConnector } = require('@stencil/core/screenshot');
but@stencil/core/screenshot
is not exposed by@stencil/core
package.jsonThe text was updated successfully, but these errors were encountered: