我们的项目中有一个自定义库。问题是当我运行命令ng build *package_name*
时,除函数中的路径之外,所有其他内容(类等)都可以正常运行。
例如,它生成行
export declare const selectState: import ("
../../../ AppFolder / ClientApp / node_modules / @ ngrx / store / src / selector ").foobar
正确的路径将是
export declare const selectState: import ("
../../ AppFolder / ClientApp / node_modules / @ ngrx / store / src / selector ").foobar
并且每次构建软件包后,我都需要在每个路径中删除 ../ ,这很烦人,并且由于对库进行了许多更改而花费了很多时间。
仅此 node_modules / @ ngrx / store / src / selector
仍然存在问题答案 0 :(得分:0)
我已经检查过,该问题已在TypeScript 3.1.1中修复