本文介绍了如何修复Angular中的"source.lift不是函数"错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用

解决方案

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

I'm using a custom version of the angular project source.lift is not a function when the http get call is made. The error is in core.js file.

How to fix this issue?

解决方案

We had the same issue as well. In the end it turned out to be an issue with mismatched brackets. We used the switchMap operator and the catcherror operator. But because we had the brackets wrong. The catcherror operator was taken as the second parameter of the switchMap (the result selector) funnily enough, this still compiled though. So please double check your brackets.

这篇关于如何修复Angular中的"source.lift不是函数"错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 13:28