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

vite 打包部署报错 #2077

Closed
xinzi1990 opened this issue Apr 29, 2022 · 8 comments
Closed

vite 打包部署报错 #2077

xinzi1990 opened this issue Apr 29, 2022 · 8 comments
Labels
type: bug 缺陷 Defects and unexpected behaviors

Comments

@xinzi1990
Copy link

xinzi1990 commented Apr 29, 2022

Describe the bug

image

我也是通过Issues找到的这段代码加到,vite.config.js里面

image

Your Example Website or App

https://user-images.githubusercontent.com/19815987/165989075-7685b8e6-7c93-4210-8696-20f771d7c760.png

Steps to Reproduce the Bug or Issue

image

Expected behavior

image

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

@NewByVector
Copy link
Contributor

加了那个配置还报错吗?

@qq897425998
Copy link

我的不报错, 但是 打包后的 vue的组件渲染不出来 console也不报错 渲染出来一片白 有解决的兄弟吗help

@NewByVector
Copy link
Contributor

@qq897425998 节点内部空白还是整个都是空白?

@qq897425998
Copy link

qq897425998 commented May 11, 2022

@NewByVector 打包后 节点内部空白 ,
尝试x6与x6-vue-shape的各个版本 依然如此
更换过vite版本也没有效果,

"@antv/x6": "^1.30.0",
"@antv/x6-vue-shape": "^1.3.1",
"vite": "^2.9.1",

@qq897425998
Copy link

vitejs/vite#3413 (comment)
将template改为render函数渲染解决了 但仍不知道具体为什么template打包后是不行的

@yangxin1
Copy link

vitejs/vite#3413 (comment) 将template改为render函数渲染解决了 但仍不知道具体为什么template打包后是不行的

你好,请问能不能详细说一下解决方案呢,我也遇到了这个问题

@NewByVector
Copy link
Contributor

解决方案参考 vitejs/vite#3413 (comment)

@x6-bot
Copy link
Contributor

x6-bot bot commented Jul 10, 2023

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Jul 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug 缺陷 Defects and unexpected behaviors
Projects
None yet
Development

No branches or pull requests

4 participants