storybookjs/storybook

[Bug]: Build Storybook fails in monerepo

Open

#24,633 opened on Oct 31, 2023

View on GitHub
 (3 comments) (0 reactions) (1 assignee)TypeScript (10,058 forks)batch import
bughelp wantednxsev:S3sveltesveltekit

Repository metrics

Stars
 (89,909 stars)
PR merge metrics
 (Avg merge 7d 22h) (184 merged PRs in 30d)

Description

Describe the bug

 I have set up a monorepo with nx workspace. The sveltekit app is located in a subdirectory. When building storybook with nx build-storybook toolapp the build fails with NX src/app.html does not exist. When I create a folder src in the workspace root folder and copy the file app.html into this folder the build works.

I can use storybook with nx storybook toolapp without problems.

To Reproduce

storybook-sveltekit-nx-workspace

to make it work rename src-throws to src

System

No response

Additional context

No response

Contributor guide