Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Nx #33

Open
binary64 opened this issue Jul 6, 2024 · 2 comments
Open

Support Nx #33

binary64 opened this issue Jul 6, 2024 · 2 comments
Labels
enhancement New feature or request need reproduction A minimal reproduction is needed to troubleshoot the issue.

Comments

@binary64
Copy link

binary64 commented Jul 6, 2024

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


@fi3ework fi3ework changed the title Cache is required Support Nxx Jul 11, 2024
@fi3ework fi3ework changed the title Support Nxx Support Nx Jul 11, 2024
@fi3ework fi3ework added the enhancement New feature or request label Jul 11, 2024
@fi3ework
Copy link
Member

Nx support needed.

@fi3ework
Copy link
Member

@binary64 Could you provide the Storybook related Nx related configuration?

@fi3ework fi3ework added the need reproduction A minimal reproduction is needed to troubleshoot the issue. label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request need reproduction A minimal reproduction is needed to troubleshoot the issue.
Projects
None yet
Development

No branches or pull requests

2 participants