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

chore: fix storybook crash #3443

Merged
merged 1 commit into from
Feb 20, 2025
Merged

chore: fix storybook crash #3443

merged 1 commit into from
Feb 20, 2025

Conversation

Sight-wcg
Copy link
Contributor

Types of changes

  • New feature
  • Bug fix
  • Enhancement
  • Component style change
  • Typescript definition change
  • Documentation change
  • Coding style change
  • Refactoring
  • Test cases
  • Continuous integration
  • Breaking change
  • Others

Background and context

storybook 无法启动,原因是版本 ^6.3 被包管理器提升到 6.5,6.5 默认使用 webpack 5,而 6.3 默认使用 webpack 4,因为某些不兼容的变更无法启动。

没有调查具体原因,因为项目的依赖问题最好集中解决。

Solution

storybook 锁定版本 6.3

How is the change tested?

  • 终端执行 pnpm run storybook 命令
  • storybook 成功启动并自动打开浏览器,跳转到预览界面
  • 终端输出
info @storybook/vue3 v6.3.0
info
info => Loading presets
info => Loading custom babel config as JS
info => Loading 1 config file in "D:\**\packages\web-vue-storybook\.storybook"
info => Loading 9 other files in "D:\**\packages\web-vue-storybook\.storybook"
info => Adding stories defined in "D:\**\packages\web-vue-storybook\.storybook\main.js"
info => Using prebuilt manager
info => Using implicit CSS loaders
info => Using default Webpack4 setup

│   Storybook 6.3.0 started                       │
│   39 s for preview                              │
│                                                 │
│    Local:            http://localhost:6006/     │
│    On your network:  http://198.18.0.1:6006/ 

Changelog

Component Changelog(CN) Changelog(EN) Related issues

Checklist:

  • Test suite passes (npm run test)
  • Provide changelog for relevant changes (e.g. bug fixes and new features) if applicable.
  • Changes are submitted to the appropriate branch (e.g. features should be submitted to feature branch and others
    should be submitted to main branch)

Other information

Copy link

codesandbox bot commented Feb 19, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@Sight-wcg Sight-wcg changed the title chore: update scripts config chore: fix storybook crash Feb 19, 2025
@oljc oljc merged commit 3356569 into arco-design:main Feb 20, 2025
@oljc
Copy link
Member

oljc commented Feb 20, 2025

@Sight-wcg 感谢 PR 🙏!如果你对项目有进一步的兴趣,欢迎加入我们的贡献者群:非官方维护群(申请时请备注 PR 号)

@oljc oljc mentioned this pull request Feb 21, 2025
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