Closed aaemnnosttv closed 1 week ago
This appears to be down to this addition to the storybook config: https://github.com/google/site-kit-wp/blob/525342100d60df54fbe295d2f6be68e0af49ef4a/.storybook/main.js#L44
This line is asking storybook to add it's own build folder as static assets to it's build which leads to a call to fs-extra which is trying to copy /dist
to /dist
which causes the error.
Removing this line removes the error and the storybook build is unchanged.
Nice find, thanks @benbowler !
IB ✅
Bug Description
A warning is raised when building storybook that indicates a rejected promise but does not break the build.
Steps to reproduce
npm run build:storybook
Example
https://github.com/google/site-kit-wp/actions/runs/10485387462/job/29044590798?pr=9195#step:5:27
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Error: Source and destination must not be the same.
error should not be raised when building StorybookImplementation Brief
Test Coverage
QA Brief
Changelog entry