gpt4 book ai didi

angular - 如何修复 Angular 'source.lift is not a function' 错误?

转载 作者:太空狗 更新时间:2023-10-29 17:21:48 25 4
gpt4 key购买 nike

我正在使用 angular project 的自定义版本当 http get 调用时,source.lift 不是一个函数。错误在 core.js 文件中。

如何解决这个问题?

enter image description here

最佳答案

我们也遇到了同样的问题。最后证明是括号不匹配的问题。我们使用了 switchMap 运算符和 catcherror 运算符。但是因为我们的括号错了。有趣的是,catcherror 运算符被用作 switchMap(结果选择器)的第二个参数,尽管它仍然被编译。所以请仔细检查你的括号。

关于angular - 如何修复 Angular 'source.lift is not a function' 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51965718/

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