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

a-layout-sider will cause an error in the console after the vite hot update #4711

Closed
1 task done
huangqian0310 opened this issue Sep 28, 2021 · 3 comments
Closed
1 task done
Assignees

Comments

@huangqian0310
Copy link

huangqian0310 commented Sep 28, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.2.8

Environment

系统版本:win10 浏览器版本:Google 91.0.4472.124 Vue:3.2.13

Reproduction link

https://github.com/huangqian0310/bug.git

Steps to reproduce

当 src/views/Home.vue中的a-layout-sider标签存在时,对 src/views/About.vue 中的setup 内的console.log进行注释或解开注释,或者更改操作,热更新后浏览器控制台会出现parentComponent.ctx.deactivate is not a function的报错

如果注释或者删除 src/views/Home.vue中的a-layout-sider标签后,再对src/views/About.vue 中的setup 内的console.log进行注释或解开注释,或者更改操作,热更新后浏览器控制台不会出现任何报错

What is expected?

当 src/views/Home.vue中的a-layout-sider标签存在时,对 src/views/About.vue 中的script内的代码进行操作后控制台不报错

What is actually happening?

当 src/views/Home.vue中的a-layout-sider标签存在时,热更新后控制台报错

@github-actions github-actions bot changed the title a-layout-sider在vite热更新后会使控制台出现报错 a-layout-sider will cause an error in the console after the vite hot update Sep 28, 2021
@huangqian0310
Copy link
Author

在手动搭的webpack或者vue-cli下同样会出现相同错误

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 20, 2022
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