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

fix(react-native): storybook relative paths #22031

Conversation

arekkubaczkowski
Copy link
Contributor

@arekkubaczkowski arekkubaczkowski commented Feb 28, 2024

Current Behavior

Currently the paths generated by storybook executor are relative against to workspace root path which cannot be resolved properly by metro that fails during the build phase.

Expected Behavior

Story files are supposed to be relative to the loader-path file so it can be resolved correctly.

relates #22009

@arekkubaczkowski arekkubaczkowski requested a review from a team as a code owner February 28, 2024 08:59
Copy link

vercel bot commented Feb 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Mar 28, 2024 4:43pm

@xiongemi
Copy link
Collaborator

looks good. could you rebase the pr?

@arekkubaczkowski
Copy link
Contributor Author

arekkubaczkowski commented Mar 19, 2024

looks good. could you rebase the pr?

well... rebase didn't go my way...

Edit: managed to fixed that. Let me know if docs changes should be there 🤔

@arekkubaczkowski arekkubaczkowski force-pushed the arekkubaczkowski/fix-storybook-relative-story-paths branch from ad55f79 to df97f95 Compare March 19, 2024 20:02
@@ -15,6 +12,9 @@ Use [validateDependency](../../devkit/documents/validateDependency) to validate

▸ (`options`, `context`): [`RawProjectGraphDependency`](../../devkit/documents/RawProjectGraphDependency)[] \| `Promise`\<[`RawProjectGraphDependency`](../../devkit/documents/RawProjectGraphDependency)[]\>

A function which parses files in the workspace to create dependencies in the [ProjectGraph](../../devkit/documents/ProjectGraph)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the docs should not be changed. could you run pnpm documentation and make sure no docs got updated?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as you said, no docs updated after pnpm documentation. Should I revert those file or you have a better idea?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you revert the doc changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xiongemi done

@xiongemi xiongemi merged commit 120cde6 into nrwl:master Apr 1, 2024
6 checks passed
FrozenPandaz pushed a commit that referenced this pull request Apr 2, 2024
Co-authored-by: Emily Xiong <[email protected]>
(cherry picked from commit 120cde6)
Copy link

github-actions bot commented Apr 7, 2024

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants