Skip to content

🐛 [Bug]: 应用模式预览(应用预览)时,如果引入第三方组件后预览报错 #1673

@hu670014125

Description

@hu670014125

Environment

macos Google Chrome 141.0.7390.66

Version

node:v23.10.0 pnpm:10.18.2

Version

@opentiny/vue:3.20

Link to minimal reproduction

No response

Step to reproduce

应用模式预览(应用预览)时,如果引入第三方组件后预览报错
复现步骤:
1.添加element-plus组件

Image

2.应用预览
预览报错

Import Map 中确实没有导入element-plus依赖库

Image

问题定位:
查看源码发现:packages/design-core/src/preview/src/preview/usePreviewData.ts中没有导入项目所依赖的第三方库

Image

What is expected

No response

What is actually happening

No response

What is your project name

2.9.0-alpha

Any additional comments (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions