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

[Bug Report] nuxt uses element-ui2.8 to report errors #15315

Closed
SmluVFpI opened this issue Apr 28, 2019 · 2 comments
Closed

[Bug Report] nuxt uses element-ui2.8 to report errors #15315

SmluVFpI opened this issue Apr 28, 2019 · 2 comments

Comments

@SmluVFpI
Copy link

Element UI version

2.8.2

OS/Browsers version

win10 x64 / chrome 73.0.3683.103

Vue version

2.6.10

Reproduction Link

https://elementui.github.io/issue-generator/#/zh-CN

Steps to reproduce

  1. 使用 create-nuxt-app 命令创建一个初始的 nuxt 应用
  2. install 时保证 element-ui 版本大于 2.8.0
  3. 运行 yarn dev 命令

What is Expected?

  1. 如果 2.8.0 以上版本不支持 ssr,请明确在文档中提醒。
  2. 如果要支持请修复该问题。

What is actually happening?

出现 HTMLElement is not defined 报错,显然是用了 HTMLElement 导致了 element-ui 不支持 ssr 模式。2.8.0以下的版本不会出现该问题。

@element-bot element-bot changed the title [Bug Report] nuxt使用element-ui2.8报错 [Bug Report] nuxt uses element-ui2.8 to report errors Apr 28, 2019
@element-bot
Copy link
Member

Translation of this issue:

Element UI version

2.8.2

OS/Browsers version

Win10 x64 / Chrome 73.0.3683.103

Vue version

2.6.10

Reproduction Link

Https://elementui.github.io/issue-generator/#/zh-CN

Steps to reproduce

  1. Create an initial nuxt application using the create-nuxt-app command

  2. Ensure element-ui version is larger than 2.8.0 when installing

  3. Run yarn dev command

What is Expected?

  1. If SSR is not supported in versions above 2.8.0, please clearly remind in the document.

  2. If you want to support, please fix the problem.

What is actually happening?

HTMLElement is not defined error, apparently using HTMLElement resulted in element-ui not supporting SSR mode. This problem will not occur in versions below 2.8.0.

@SimonaliaChen
Copy link
Contributor

It will be fixed in v2.8.3 #15277

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants