G6: Cannot find type definition file for '[email protected]@gl-matrix'. 1 /// <reference types="[email protected]@gl-matrix" />

Created on 28 Jan 2021  ·  6Comments  ·  Source: antvis/G6

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://github.com/antvis/G6

Steps to reproduce

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
image

image

Most helpful comment

对于这种第三方包的错误影响到了项目的构建,可以通过设置tsconfig.json文件来跳过对第三方包的校验。

设置参数:"skipLibCheck":true, 即可

All 6 comments

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, 即可

image

Was this page helpful?
0 / 5 - 0 ratings