Element Plus version
1.0.2-beta.46
OS/Browsers version
Windows 10, Chrome 91
Vue version
3.1.1
Reproduction Link
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
7条答案
按热度按时间cbwuti441#
It seems like v-loading does not support server side rendering
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.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)
hgqdbh6s4#
这个问题怎么解决呢?
xu3bshqb5#
只能等待吗?
nr9pn0ug6#
Sorry for the time we waste, you may decide whether rendering the
el-loading
component by theisServer
flag. When under SSR env, you may not want to useel-loading
since it is totally something we don't need.kqqjbcuj7#
Currently we are facing the issue of running out of developers. Since you know why ;)