element-plus / element-plus-playground

Element Plus Playground
https://element-plus.run
MIT License
174 stars 54 forks source link

npm run build && proxy via nginx error #142

Closed hxgqh closed 2 years ago

hxgqh commented 2 years ago

just clone master branch and execute:

npm run build
rsync -avz dist/* <my-server>

demo site: http://element-plus.play.dev.block-design.cn:8000

node version: v16.13.2

Uncaught TypeError: Cannot read properties of undefined (reading 'render')
    at Object.app.mount (runtime-dom.esm-browser.js:10587:50)
    at about:srcdoc:11:7
server {
  listen 80;
  listen 8000;
  server_name element-plus.playground.dev.block-design.cn element-plus.play.dev.block-design.cn;

  location / {
    root    /var/www/html/playground/element-plus;
    index   index.html index.htm;
    try_files $uri $uri/ /index.html last;
  }
}