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
When I run the nightwatch command though it can't resolve it:
yarn run v1.22.19
warning package.json: No license field
$ npx nightwatch src/stories/Search.stories.jsx
✘ [ERROR] Could not resolve "opensearch-search-fetcher"
src/search/components/search.jsx:11:33:
11 │ import getOpenSearchResults from "opensearch-search-fetcher";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can mark the path "opensearch-search-fetcher" as external to exclude it from the bundle, which will remove this error.
Wrote HTML report file to: /app/docroot/modules/custom/dnsw_react/js/tests_output/nightwatch-html-report/index.html
Error Error while trying to load /app/docroot/modules/custom/dnsw_react/js/src/stories/Search.stories.jsx
Build failed with 1 error:
src/search/components/search.jsx:11:33: ERROR: Could not resolve "opensearch-search-fetcher"
error Command failed with exit code 10.
I'm using webpack module aliasing but it doesn't appear to be working with this plugin even though it is working when I view the built storybook.
The resolve portion of my webpack file.
The mock in my main.js file:
This works when I view storybook in the browser.
When I run the nightwatch command though it can't resolve it:
Using:
The text was updated successfully, but these errors were encountered: