-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
示例工程本地预览没问题,部署到Nginx,按照文档配置,停留在初始页面转圈? #1206
Comments
不要修改 publicPath |
遇到同样问题,未对代码做任何修改,直接npm run build 部署到nginx 后一直转圈,显示堆栈溢出 |
今天部nginx的时候也遇到了,折腾了一番,暂时是先把vue.config.js中 vue的externals 注释掉了
|
似乎是 7 月 1 日的 commit 引入 vue-drags 的问题,把这个 commit revert 回去之后就正常了。本人非前端,具体怎么解决循环依赖不清楚,暂时是这么解决的。 |
测了一下啊,应该是这个引起的,具体还没查到 |
This was referenced Jul 12, 2021
把那个 pr 回退了。更新一下重新 pull 新代码 build 就能正常运行了 |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
如题
https://github.com/vueComponent/ant-design-vue-pro.git
直接clone到本地的工程
npm install
npm run serve (本地预览正常)
npm run build (打包正常)
打包后的dist文件夹上传到服务器,按文档配置了nginx配置,始终首页转圈圈,报错

nginx配置我贴出来,求帮助,网上说什么给vueConfig里添加publicPath: './',把history改成hash,还有说什么非根目录,我都尝试了,还是一样的问题
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
}
The text was updated successfully, but these errors were encountered: