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

打包上线出现Cannot assign to read only property '_status' of object '#<Object> #16577

Closed
7 tasks done
xqb0407 opened this issue May 2, 2024 · 1 comment
Closed
7 tasks done

Comments

@xqb0407
Copy link

xqb0407 commented May 2, 2024

Describe the bug

开发环境正常, 打包上线后出现,Cannot assign to read only property '_status' of object '#
image

Reproduction

null

Steps to reproduce

版本号是:"vite": "^5.1.0",
实际发现是动态加载路由导致的
element: lazyLoad(React.lazy(() => import("@/pages/base/userCenter")))

如果直接使用
import Login from "@/pages/auth/Login";
element: ,
不会报错

System Info

**Cannot assign to read only property '_status' of object '#<Object>**

Used Package Manager

yarn

Logs

No response

Validations

Copy link

github-actions bot commented May 2, 2024

Hello @xqb0407. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with needs reproduction will be closed if they have no activity within 3 days.

@xqb0407 xqb0407 closed this as completed May 2, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants