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

引用G6报错 dependencies were not found:gl-matrix/vec2 gl-matrix/vec3 #3236

Closed
jayrenkang opened this issue Oct 5, 2021 · 9 comments
Closed

Comments

@jayrenkang
Copy link

import G6 from '@antv/g6';

报错信息:
**These dependencies were not found:

  • gl-matrix/vec2 in ./node_modules/@antv/g-math/esm/line.js
  • gl-matrix/vec3 in ./node_modules/@antv/g-canvas/esm/util/path.js**
    尝试npm install gl-matrix/vec2 gl-matrix/vec3 时npm报错,是不是这两个包没有了啊
@jayrenkang
Copy link
Author

G6版本4.3.8

@Blakko
Copy link
Contributor

Blakko commented Oct 5, 2021

I got npm run build:all to work by:

npm test still doesn't work

@IdreesSamadi
Copy link

I have a similar issue with [email protected] in React, any solution?

@monolithed
Copy link

toji/gl-matrix#439

@Blakko
Copy link
Contributor

Blakko commented Oct 6, 2021

After manually installing gl-matrix v3.4.3 (via an npm install [email protected]) the build works again.
jest tests (npm run test) are still not working due to issues with the gl-matrix dependency:

Details:

        G6\node_modules\gl-matrix\dist\esm\index.js:1
        ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){import * as glMatrix from "./common.js";
                                                                                                        ^

        SyntaxError: Unexpected token *

@BowenHero
Copy link

我也有这个问题请问解决了吗

@Yanyan-Wang
Copy link
Contributor

暂时通过在项目中升级 gl-matrix 到 3.4.3 来解决,接下来 G6 会在内部升级 gl-matrix 依赖

@Yanyan-Wang
Copy link
Contributor

请尝试 v4.4.0-beta.0

@Yanyan-Wang
Copy link
Contributor

尊敬的用户,您好。我们很重视您的 issue,但由于长时间没有答复,我们暂时认为这个问题已经解决。如果还有任何问题,请随时根据 issue 模版再开启新的 issue。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants