Comments (3)
你好,刚看到你的消息,回复的稍晚了些,抱歉。
我刚才依次确认了下:
- 我们当前使用的 @antv/g2plot 版本都是
"@antv/g2plot": "^2.4.23"
; - 我本地运行及打包测试正常;
- 我查看了下 @antv/g2plot 的最新版本,最新版是 v2.4.25;
- 我尝试升级依赖版本,并继续运行及打包测试;
然后打包时也出现了相同的错误,可以初步确定这是由于 @antv/g2plot 版本升级导致的问题。
因为在版本号前用了 ^ 符号,所以它会自动更新版本到当前相同大版本的最新版本,例如:v2.4.23 => v2.4.25 会自动升级,但 v2.4.23 => v3.x.x 不会自动升级。 - 针对这个问题的解决方法,目前有两个:
a) 将 @antv/g2plot 版本锁定,即修改 package.json,将"@antv/g2plot": "^2.4.23"
改为"@antv/g2plot": "2.4.23"
,我已经再次运行及打包测试过了,没有问题。
b) 关注相关库的 issues,需要调研解决。 - 实际上,我们的知识库仅是用到了 “WordCloud(词云)” 组件,且目前功能可以满足需要,所以可以直接采用第1种解决方法,第2种方法容我空闲时间调研确认一下,最近比较忙。
from charles7c.github.io.
感谢帮助
抱歉回复这么晚。
- 固定版本号之后还是同样的错误,我尝试降了很多版本都不行。
- 我也尝试换了很多node版本,依旧没有解决,作者用的是哪个版本呢?
- 直接拉你的项目是可以的。
- 我自己再研究一下吧,我学的比较菜。
- 如果作者有时间可以看下我的demo:https://github.com/chaodosen/docs
from charles7c.github.io.
@chaodosen
参照 ant-design/ant-design#40644 (comment) 的解决方法,报错的直接原因是 @antv/g-base、@antv/path-util ,它们两个版本降低一下就没事了。
charles7c.github.io/package.json
Lines 34 to 38 in a0358e1
from charles7c.github.io.
Related Issues (20)
- 精密计算工具类-BigDecimal | 查尔斯的知识库
- 你好 请教下algolia是怎么配置的,我的搜索不出数据 HOT 1
- 解决Windows桌面部分快捷方式图标变为空白的问题 | 查尔斯的知识库 HOT 4
- Docker 设置网络代理 | 查尔斯的知识库
- CentOS 安装 Docker、Docker Compose | 查尔斯的知识库
- 使用 IntelliJ IDEA 进行远程程序调试 | 查尔斯的知识库
- 解决 CentOS 8 执行 yum install 报 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist 的问题 | 查尔斯的知识库
- 解决 Docker 安装 Prometheus 启动报 permission denied 的问题 | 查尔斯的知识库
- 解决 DotNET 安装完,报错:Couldn't find a valid ICU package installed on the system. Please install libicu using your package manager and try again | 查尔斯的知识库 HOT 2
- 留言时候的github授权 HOT 4
- 阿里巴巴的Code Review方法论与实践总结 | 查尔斯的知识库
- 大佬太牛了 HOT 1
- 大佬,那个标签怎么设置的 HOT 2
- 👍🏻 来点个赞,博主这主题做得很好呀 HOT 2
- 软件设计师知识点速记 | 查尔斯的知识库
- 软件设计师知识点速记:标准与知识产权 | 查尔斯的知识库
- markdown不支持c++ HOT 1
- 请问下你这个文档部署Nginx配置是什么样的?我这边刷新就没有内容了 HOT 3
- 在 ’我的归档‘ 点击文章跳转后侧边栏异常展示
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from charles7c.github.io.