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

[Component] [table] 生产环境报错 开发没问题 #9160

Closed
ksmarsh opened this issue Aug 2, 2022 · 9 comments
Closed

[Component] [table] 生产环境报错 开发没问题 #9160

ksmarsh opened this issue Aug 2, 2022 · 9 comments
Labels
CommitMessage::Unqualified Unqualified commit message need reproduction Need more information, we cannot reproduce your problem

Comments

@ksmarsh
Copy link

ksmarsh commented Aug 2, 2022

Bug Type: Component

Environment

  • Vue Version: 3.2.37
  • Element Plus Version: 2.2.12
  • Browser / OS: Chrome 103.0.5060.134
  • Build Tool: Vite

Reproduction

Related Component

  • el-table

Reproduction Link

[Docs CN](https://element-plus.gitee.io/zh-CN/component/table.html#table-column-%E5%B1%9E%E6%80%A7 请原谅我无法复现这个问题的代码)

Steps to reproduce

使用el-table 组件

What is Expected?

一切正常

What is actually happening?

打包后的项目 初始化页面加载正常 切换也没问题,刷新后,再重复切换 就会报错
Cannot read properties of null (reading 'insertBefore')
Cannot read properties of null (reading 'emitsOptions')
这两个错误

Additional comments

救命 ,希望设计人说下这到底是什么问题,该怎么做才能解决。目前这个问题在整个项目里多处出现,没法交付项目啊。

@ksmarsh
Copy link
Author

ksmarsh commented Aug 2, 2022

我再次提了这个问题以前都没遇到过,

@ksmarsh
Copy link
Author

ksmarsh commented Aug 2, 2022

是刷新网页后切换路由加载页面出现问题

@tolking tolking added need reproduction Need more information, we cannot reproduce your problem CommitMessage::Unqualified Unqualified commit message labels Aug 2, 2022
@github-actions
Copy link

github-actions bot commented Aug 2, 2022

Hello @ksmarsh. Please provide an online reproduction demo by clicking this link or a minimal GitHub repository. Issues marked with need reproduction will be closed if they have no activity within 3 days.

你好 @ksmarsh, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。可以通过点击 此处 创建或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。

@ksmarsh
Copy link
Author

ksmarsh commented Aug 3, 2022

https://codepen.io/ksmarsh/pen/BarYvzx

这是在线的实例
重现问题需要打包后 运行 最好是进行路由切换。我在开发环境下控制台不会报错 但是使用chromed的调试工具Sources 会显示被vue捕获的异常和错误,我通过它定位到了问题 在el-table组件里使用链式方式获取值 需要提前判断,否则打包后会报错,并且控制台不会显示问题

@litt1e-p
Copy link

litt1e-p commented Aug 3, 2022

same as el-select, fallback to v2.29 everything works fine

@ksmarsh
Copy link
Author

ksmarsh commented Aug 3, 2022

你是指vue3.2.29版本吗

@litt1e-p
Copy link

litt1e-p commented Aug 3, 2022

element-plus v2.2.9

@ksmarsh
Copy link
Author

ksmarsh commented Aug 3, 2022

我尝试一下

@github-actions github-actions bot closed this as completed Aug 6, 2022
@github-actions
Copy link

github-actions bot commented Sep 5, 2022

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.

此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。

@github-actions github-actions bot locked and limited conversation to collaborators Sep 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CommitMessage::Unqualified Unqualified commit message need reproduction Need more information, we cannot reproduce your problem
Projects
None yet
Development

No branches or pull requests

3 participants