Giter Club home page Giter Club logo

Comments (3)

Charles7c avatar Charles7c commented on July 18, 2024

你好,刚看到你的消息,回复的稍晚了些,抱歉。

我刚才依次确认了下:

  1. 我们当前使用的 @antv/g2plot 版本都是 "@antv/g2plot": "^2.4.23"
  2. 我本地运行及打包测试正常;
    image
  3. 我查看了下 @antv/g2plot 的最新版本,最新版是 v2.4.25;
    image
  4. 我尝试升级依赖版本,并继续运行及打包测试;
    image
    然后打包时也出现了相同的错误,可以初步确定这是由于 @antv/g2plot 版本升级导致的问题。
    image
    因为在版本号前用了 ^ 符号,所以它会自动更新版本到当前相同大版本的最新版本,例如:v2.4.23 => v2.4.25 会自动升级,但 v2.4.23 => v3.x.x 不会自动升级。
  5. 针对这个问题的解决方法,目前有两个:
    a) 将 @antv/g2plot 版本锁定,即修改 package.json,将 "@antv/g2plot": "^2.4.23" 改为 "@antv/g2plot": "2.4.23",我已经再次运行及打包测试过了,没有问题。
    image
    b) 关注相关库的 issues,需要调研解决。
  6. 实际上,我们的知识库仅是用到了 “WordCloud(词云)” 组件,且目前功能可以满足需要,所以可以直接采用第1种解决方法,第2种方法容我空闲时间调研确认一下,最近比较忙。

from charles7c.github.io.

chaodosen avatar chaodosen commented on July 18, 2024

感谢帮助

抱歉回复这么晚。

  1. 固定版本号之后还是同样的错误,我尝试降了很多版本都不行。
  2. 我也尝试换了很多node版本,依旧没有解决,作者用的是哪个版本呢?
  3. 直接拉你的项目是可以的。
  4. 我自己再研究一下吧,我学的比较菜。
  5. 如果作者有时间可以看下我的demo:https://github.com/chaodosen/docs

from charles7c.github.io.

Charles7c avatar Charles7c commented on July 18, 2024

@chaodosen
参照 ant-design/ant-design#40644 (comment) 的解决方法,报错的直接原因是 @antv/g-base、@antv/path-util ,它们两个版本降低一下就没事了。

"pnpm": {
"overrides": {
"@antv/g-base": "0.5.11",
"@antv/path-util": "2.0.15"
},

from charles7c.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.