Skip to content

[bug]: 生产环境,系统报错 #91

Description

@woshiwhy

Summary

在开发环境一切正常。打包到生产环境控制台报错
codemirror-view.Cayq28M3.js:1 Uncaught ReferenceError: Cannot access 'y' before initialization
at codemirror-view.Cayq28M3.js:1:107066

Reproduction

页面初始化控制台报错:
codemirror-view.Cayq28M3.js:1 Uncaught ReferenceError: Cannot access 'y' before initialization
at codemirror-view.Cayq28M3.js:1:107066
卸载 file-viewer关联组件
"@file-viewer/react": "^2.1.23",
打包发布一切正常

Environment

"@file-viewer/react": "^2.1.23",
"@file-viewer/vite-plugin": "^2.1.23",
"@codesandbox/sandpack-react": "^2.19.10",
"pdfjs-dist": "3.10.111",
"react": "^18.3.1",
"vite": "^6.3.6",

Console or network errors


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions