Skip to content

[bug]: 3.0版本打包报错(vite8,pnpm11,node22.22) #242

Description

@lixin59

Affected area

Packaging or bundler integration

File type and extension

N/A

Package names and exact versions

@file-viewer/vite-plugin@3.0,@file-viewer/preset-all@3.0,@file-viewer/vue3@3.0

Sample sharing method

Public or sanitized sample attached to this issue

Sample or reproduction artifact

1.封装的组件,

Image 2.vite配置 Image 3.依赖版本 "@file-viewer/preset-all": "^3.0.0", "@file-viewer/vue3": "^3.0.0", "@file-viewer/vite-plugin": "^3.0.0",

Minimal reproduction steps

最近从V2.2.5版本升级到v3.0版本之后出现的这个问题

Actual behavior

Image

Expected behavior

大版本更新应该不会有这种问题才对,我尝试回退到2.4.0的版本2.4.0版本打包没有报错

Image

Environment

Image

vue3
vite 8.0.12
windows 11
node 22.22.0
pnpm 11.23.0

Regression status

Worked in an earlier File Viewer version

Screenshots or recordings

No response

Console and network evidence


Required confirmations

  • I searched existing issues and did not find the same reproduction.
  • I have already attached, linked, or privately sent the sample using the selected method.
  • I understand that screenshots and renamed file extensions do not replace a real sample or runnable reproduction.
  • Any public attachment is sanitized and safe to redistribute for regression testing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstatus:needs-sampleA source or reduced reproduction file is required

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions