Our build action failed with the following error. Resolve the storybook addon warnings, and fix the storybook/test import error.
Run yarn build-storybook
yarn run v1.22.22
$ storybook build
storybook v9.0.6
info => Cleaning outputDir: storybook-static
info => Loading presets
WARN Could not resolve addon "@storybook/addon-essentials", skipping. Is it installed?
WARN Could not resolve addon "@storybook/addon-interactions", skipping. Is it installed?
WARN Could not resolve addon "@storybook/addon-essentials", skipping. Is it installed?
WARN Could not resolve addon "@storybook/addon-interactions", skipping. Is it installed?
info => Building manager..
info => Manager built (99 ms)
info => Building preview..
WARN No story files found for the specified pattern: src/**/*.mdx
vite v6.3.5 building for production...
transforming...
✓ 17 modules transformed.
✗ Build failed in 367ms
=> Failed to build the preview
[vite]: Rollup failed to resolve import "@storybook/test" from "./src/stories/EnrichmentMenu.stories.ts".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
at viteLog (file://./node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:[4](https://github.com/DeepBlueCLtd/grid-sight/actions/runs/15612250269/job/43975792705#step:6:5)6345:15)
at onRollupLog (file://./node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:4639[5](https://github.com/DeepBlueCLtd/grid-sight/actions/runs/15612250269/job/43975792705#step:6:6):5)
at onLog (file://./node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:4[6](https://github.com/DeepBlueCLtd/grid-sight/actions/runs/15612250269/job/43975792705#step:6:7)043:7)
at file://./node_modules/rollup/dist/es/shared/node-entry.js:20[7](https://github.com/DeepBlueCLtd/grid-sight/actions/runs/15612250269/job/43975792705#step:6:8)72:32
at Object.logger [as onLog] (file://./node_modules/rollup/dist/es/shared/node-entry.js:22651:9)
at ModuleLoader.handleInvalidResolvedId (file://./node_modules/rollup/dist/es/shared/node-entry.js:2139[8](https://github.com/DeepBlueCLtd/grid-sight/actions/runs/15612250269/job/43975792705#step:6:9):26)
at file://./node_modules/rollup/dist/es/shared/node-entry.js:21356:26
WARN Could not resolve addon "@storybook/addon-essentials", skipping. Is it installed?
WARN Could not resolve addon "@storybook/addon-interactions", skipping. Is it installed?
attention => Storybook now collects completely anonymous telemetry regarding usage.
This information is used to shape Storybook's roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://storybook.js.org/telemetry
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.
Our build action failed with the following error. Resolve the storybook addon warnings, and fix the storybook/test import error.