Follow the demo given by the official website import G6 from '@antv/g6';
| Environment | Info |
|---|---|
| g6 | 4.1.4 |
| System | "typescript": "~3.8.3" |
| Browser | - |
import G6 from '@antv/g6'; npm run build


Try updating typescript, this does not happen for me using v~3.9.5
对于这种第三方包的错误影响到了项目的构建,可以通过设置tsconfig.json文件来跳过对第三方包的校验。
设置参数:"skipLibCheck":true, 即可
gl-matrix 第三方包没有类型定义。可以通过上面两个朋友的回答避免。
请升级到 v4.1.11,该问题已解决
still seeing this in 4.1.12
对于这种第三方包的错误影响到了项目的构建,可以通过设置tsconfig.json文件来跳过对第三方包的校验。
设置参数:"skipLibCheck":true, 即可

Most helpful comment
对于这种第三方包的错误影响到了项目的构建,可以通过设置tsconfig.json文件来跳过对第三方包的校验。
设置参数:"skipLibCheck":true, 即可