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

Update components-marketing #47

Merged
merged 4 commits into from
May 16, 2024
Merged

Update components-marketing #47

merged 4 commits into from
May 16, 2024

Conversation

kylegach
Copy link
Contributor

Copy link

netlify bot commented May 15, 2024

Deploy Preview for storybook-status ready!

Name Link
🔨 Latest commit 8d924b2
🔍 Latest deploy log https://app.netlify.com/sites/storybook-status/deploys/6645bbedf07bb0000845fb97
😎 Deploy Preview https://deploy-preview-47--storybook-status.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

kylegach added 2 commits May 15, 2024 17:31
- Need to use `transpilePackages` config option
@kylegach
Copy link
Contributor Author

@yannbf — Does this preview look correct to you?

https://deploy-preview-47--storybook-status.netlify.app/status

next.config.js Outdated
@@ -4,6 +4,7 @@ const nextConfig = {
swcMinify: true,
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
staticPageGenerationTimeout: 900, // equivalent to netlify's timeout
transpilePackages: ['@storybook/components-marketing'],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@yannbf — This is to fix the issue with @storybook/api/shortcut.

  • That package is used by @storybook/components-marketing, to display the keyboard shortcut for the search in the header.
  • @storybook/components-marketing has a dependency on "@storybook/api": "^6.5.9", so it's not a matter of the api package being removed in SB 7
  • It's instead a transpilation error, thus this new config (and the upgrade to next 13.1 to be able to use it)

Copy link
Member

Choose a reason for hiding this comment

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

This issue propagated to Storybook as well, I fixed it by patching the @storybook/components-marketing package. Instead of importing from @storybook/api/shortcut, importing from @storybook/manager-api instead.

I think it would make more sense if @storybook/components-marketing stopped depending on @storybook/api and just copied those minimal functions to use internally

@yannbf
Copy link
Member

yannbf commented May 16, 2024

@yannbf — Does this preview look correct to you?

deploy-preview-47--storybook-status.netlify.app/status

Looks pretty good! Thanks for the fixes <3

@yannbf yannbf merged commit 28c6472 into main May 16, 2024
8 checks passed
@kylegach kylegach deleted the update-components-marketing branch May 16, 2024 15:32
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.

2 participants