gpt4 book ai didi

angular - 构建错误 : Two different types with this name exist, 但它们不相关

转载 作者:太空狗 更新时间:2023-10-29 17:36:55 24 4
gpt4 key购买 nike

我在构建 JHipster Angular 项目时遇到此错误

[ERROR] Error at /Users/Dan/work/gba/node_modules/ng-jhipster/src/interceptor/interceptable-http.d.ts:4:22: Class 'InterceptableHttp' incorrectly extends base class 'Http'.
[ERROR] Types of property 'request' are incompatible.
[ERROR] Type '(url: string | Request, options?: RequestOptionsArgs) => Observable<Response>' is not assignable to type '(url: string | Request, options?: RequestOptionsArgs) => Observable<Response>'. Two different types with this name exist, but they are unrelated.
[ERROR] Type 'Observable<Response>' is not assignable to type 'Observable<Response>'. Two different types with this name exist, but they are unrelated.
[ERROR] Property 'source' is protected but type 'Observable<T>' is not a class derived from 'Observable<T>'.

我在使用 this project 时遇到了这个问题.

完整的 Travis 构建错误是 here

最佳答案

这让我困扰了几天。为了修复它,我删除了我的 /target 目录和 yarn.lock 文件。

关于angular - 构建错误 : Two different types with this name exist, 但它们不相关,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44274388/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com