element-plus [Bug Report] v-loading in el-dialog's footer slot causes 'Build failed with errors' in createSSRApp

bpsygsoo  于 2022-10-21  发布在  其他
关注(0)|答案(7)|浏览(207)

Element Plus version

1.0.2-beta.46

OS/Browsers version

Windows 10, Chrome 91

Vue version

3.1.1

https://codesandbox.io/s/ssr-v-loading-in-el-dialog-footer-oydtn

Steps to reproduce

yarn build

What is Expected?

no error in building for SSR

What is actually happening?

webpack raises an error: Build failed with errors

cbwuti44

cbwuti441#

It seems like v-loading does not support server side rendering

byqmnocz

byqmnocz2#

Found that the build fails when using v-loading on basic HTML tags.
We solved this problem by changing the basic HTML tags to <el-row> etc. for the time being.

d6kp6zgx

d6kp6zgx3#

We'll investigate what caused the issue. It could be caused by loading component not supporting SSR (maybe loading used some DOM APIs so that it could fail)

hgqdbh6s

hgqdbh6s4#

这个问题怎么解决呢?

nr9pn0ug

nr9pn0ug6#

Sorry for the time we waste, you may decide whether rendering the el-loading component by the isServer flag. When under SSR env, you may not want to use el-loading since it is totally something we don't need.

kqqjbcuj

kqqjbcuj7#

Currently we are facing the issue of running out of developers. Since you know why ;)

相关问题