Kanaries / Rath

Next generation of automated data exploratory analysis and visualization platform.

Home Page:https://kanaries.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

第三方类库在编译的时候出现大量 `Failed to parse source map` 警告

digiaries opened this issue · comments

期望结果

yarn workspace rath-client start 不出现 Failed to parse source map 这样的异常警告

实际结果

yarn workspace rath-client start 后出现大量 Failed to parse source map 异常警告

WARNING in ../../node_modules/inversify/lib/utils/serialization.js
Module Warning (from ../../node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/edwin/codes/kanaries/Rath/node_modules/inversify/src/utils/serialization.ts' file: Error: ENOENT: no such file or directory, open '/Users/edwin/codes/kanaries/Rath/node_modules/inversify/src/utils/serialization.ts'
 @ ../../node_modules/inversify/lib/inversify.js 198:22-54
 @ ../../node_modules/@antv/g-webgpu/es/Kernel.js 49:0-47 54:28-38 54:50-56 54:91-97
 @ ../../node_modules/@antv/g-webgpu/es/index.js 3:0-34 7:0-65
 @ ../../node_modules/@antv/layout/lib/layout/gpu/fruchterman.js 184:17-42
 @ ../../node_modules/@antv/layout/lib/layout/index.js 139:20-48
 @ ../../node_modules/@antv/layout/lib/index.js 52:13-32
 @ ../../node_modules/@antv/g6-pc/es/layout/index.js 1:0-364 3:0-15 3:24-34 4:0-15 4:26-38 5:0-15 5:25-36 6:0-15 6:28-42 7:0-15 7:25-36 8:0-15 8:33-52 9:0-15 9:26-38 10:0-15 10:30-46 11:0-15 11:23-32 12:0-15 12:31-48 13:0-15 13:35-55 14:0-15 14:26-38 15:0-15 15:26-38 16:0-15 16:30-45 17:0-15 17:30-46 18:0-15 18:33-52 19:0-15 19:31-48 23:2-8 23:17-32 26:0-46
 @ ../../node_modules/@antv/g6-pc/es/index.js 7:0-62 32:0-238 32:0-238 32:0-238 38:10-16 39:14-24 40:18-32
 @ ../../node_modules/@antv/g6/es/index.js 1:0-29 2:0-10 3:0-28 3:0-28 4:15-17
 @ ./src/pages/causal/explorer/graph-utils.ts 7:0-26 17:0-15
 @ ./src/pages/causal/functionalDependencies/FDGraph.tsx 12:0-73 109:21-34 115:14-29 195:48-61 195:63-78
 @ ./src/pages/causal/functionalDependencies/FDEditor.tsx 5:0-32 22:35-42
 @ ./src/pages/causal/functionalDependencies/FDPanel.tsx 11:0-34 44:35-43
 @ ./src/pages/causal/step/FDConfig.tsx 5:0-56 11:35-42
 @ ./src/pages/causal/step/index.tsx 11:0-40 312:53-67
 @ ./src/pages/causal/index.tsx 11:0-41 67:39-54
 @ ./src/App.tsx 25:0-40 146:71-81
 @ ./src/index.tsx 17:0-24 23:38-41

还没写完不小心发出来,原本已经写了修复方案,但在提交前看到了 @ObservedObserverInversifyJS 中的 pr,因此没有直接提交修改后的代码。

我看了一下 InversifyJS 中的 issues, 这个问题已经存在一段时间且之前有过一些修改但还没发,我比较同意 #1408 中 ianldgs 老哥的看法,这个问题最好还是屏蔽了事。

这个问题并不属于RATH,相关的解决方法是对于依赖的处理而不是RATH的处理。我们并不打算在RATH层面修复这个问题。

有一些非常hack的方法可以解决,如使用脚本手动的拉取github源代码;或是利用mono-repo的机制,打入一个patch版本。但这些在短期内都没有必要。