-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Labels
enhancementNew feature or requestNew feature or requestneed reproductionA minimal reproduction is needed to troubleshoot the issue.A minimal reproduction is needed to troubleshoot the issue.
Description
Hi, I'm getting a strange error. How can I enable cache?
$ yarn nx run ui:export-storybook --skip-nx-cache --verbose
yarn run v1.22.18
$ cross-env NODE_OPTIONS=--max-old-space-size=16000 nx run ui:export-storybook --skip-nx-cache --verbose
> nx run ui:export-storybook
^[[44;1R
NX Storybook builder starting ...
info => Cleaning outputDir: \dist\storybook\ui
info => Loading presets
info => Building manager..
info => Manager built (334 ms)
info => Building preview..
info Addon-docs: using MDX3
info => Copying static files: c:\monorepo\node_modules\@storybook\manager\static at c:\monorepo\dist\storybook\ui\sb-common-assets
=> Failed to build the preview
NX Cache is required
Error: Cache is required
at iframe_rsbuild_config_default (c:\monorepo\node_modules\storybook-builder-rsbuild\dist\index.js:363:11)
at async rsbuild (c:\monorepo\node_modules\storybook-builder-rsbuild\dist\index.js:523:25)
at async Module.build (c:\monorepo\node_modules\storybook-builder-rsbuild\dist\index.js:605:18)
at async Promise.all (index 0)
at async buildStaticStandalone (c:\monorepo\node_modules\@storybook\core-server\dist\index.js:61:2295)
at async buildStorybookExecutor (c:\monorepo\node_modules\@nx\storybook\src\executors\build-storybook\build-storybook.impl.js:14:5)
at async promiseToIterator (c:\monorepo\NODE_M~1\nx\src\command-line\run\run.js:32:11)
at async getLastValueFromAsyncIterableIterator (c:\monorepo\NODE_M~1\nx\src\utils\async-iterator.js:13:19)
at async iteratorToProcessStatusCode (c:\monorepo\NODE_M~1\nx\src\command-line\run\run.js:43:29)
at async handleErrors (c:\monorepo\NODE_M~1\nx\src\utils\params.js:9:16)
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
NX Running target export-storybook for project ui failed
Failed tasks:
- ui:export-storybook
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestneed reproductionA minimal reproduction is needed to troubleshoot the issue.A minimal reproduction is needed to troubleshoot the issue.