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

[Bug]: storybook bug #224

Open
Aerojin opened this issue Jan 24, 2025 · 0 comments
Open

[Bug]: storybook bug #224

Aerojin opened this issue Jan 24, 2025 · 0 comments

Comments

@Aerojin
Copy link

Aerojin commented Jan 24, 2025

Version

System:  macos 14.4.1
Browsers:  chrome 131.0.6778.205(正式版本) (arm64)
npmPackages:
"@rsbuild/core": "^1.1.13",
    "@rsbuild/plugin-vue": "^1.0.5",
    "@rslib/core": "^0.3.0",
    "@storybook/addon-docs": "^8.4.7",
    "@storybook/addon-essentials": "^8.4.7",
    "@storybook/test": "^8.4.7",
    "@storybook/vue3": "^8.4.7",
    "@types/node": "^22.10.5",
    "@vue/cli-plugin-typescript": "^5.0.8",
    "@vue/compiler-sfc": "^3.5.13",
    "react": "^19.0.0",
    "storybook": "^8.4.7",
    "storybook-addon-rslib": "^0.1.7",
    "storybook-vue3-rsbuild": "^0.1.7",
    "typescript": "^5.7.2",
    "vue": "^3.5.13",
    "vue-tsc": "^2.2.0"

Details

问题

  • 自定义用例使用Template.ToString() 是编译后的用例,应该是使用编译前的用例
     img
  • 正确的用例应该是下面这样
    img
  • 编译后storybook,部署到cdn上样例加载不出来,排查后发现iframe中使用esModule相对路径引用,导致部署之后找不到文件
     img
     img
     img

复现

Reproduce link

Reproduce Steps

复现

@Aerojin Aerojin changed the title [Bug]: [Bug]: storybook bug Jan 24, 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

No branches or pull requests

1 participant