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 storybook build #5949

Merged
merged 1 commit into from
Oct 21, 2024
Merged

fix storybook build #5949

merged 1 commit into from
Oct 21, 2024

Conversation

beyang
Copy link
Member

@beyang beyang commented Oct 18, 2024

A recent change (e9a460e) broke the storybook dev build, because it made env-paths a dependency of lib/shared, resulting in an error os.homedir is not a function in storybook's browser environment.

This fixes it by taking env-paths out of lib/shared, duplicating it agent/ and vscode/. There may be a more elegant to do this through the vite config—I see a resolve override in agent to prevent this dep from being imported/activated, but not sure how to do that.

Test plan

No changes

@beyang beyang requested review from a team and jamesmcnamara October 18, 2024 18:51
Copy link
Contributor

@jamesmcnamara jamesmcnamara left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this! I did that vite fix here but it hasn't been merged. Up to you if you want to copy it.

@beyang
Copy link
Member Author

beyang commented Oct 18, 2024

@jamesmcnamara brilliant, that's exactly the thing I was looking for but wasn't sure how to add

@beyang beyang enabled auto-merge (squash) October 18, 2024 23:30
@beyang beyang merged commit 7192bdd into main Oct 21, 2024
19 of 20 checks passed
@beyang beyang deleted the bl/fix-storybook branch October 21, 2024 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants