admin管理员组文章数量:1130206
while importing {map} in file templatesponent.ts file
import { map } from "rxjs/operators";
Code snipppet:
this.changeMessage = combineLatest([
this.isReturningZeroEntry,this.isAddToCartPopup])
.pipe(map(([zeroEntry, addPopup]) => {
if (zeroEntry && addPopup)
return true;
return false;
}));
Getting error while compiling: Error: src/app/templates/templatesponent.ts:277:30 - error TS2493: Tuple type '[any]' of length '1' has no element
i tried removing one of the paramter in (map(([])), although it removes compilation error but still the correct results are not achieved while running the case.
after angular upgrade from 15 to 17 version, this map() accepts one parameter instead of two.
本文标签:
版权声明:本文标题:spartacus storefront - import { map} from "rxjsoperators". Error: Tuple type '[any]' of length 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736743864a1950663.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论