当我把下图Spartacus这段配置代码里的baseUrl改成baseUrl2时,

报错:

Follow link (ctrl + click)Types of property 'backend' are incompatible.Type '{ occ: { baseUrl2: string; prefix: string; }; }' is not assignable to type '{ occ?: { baseUrl?: string; prefix?: string; useWithCredentials?: boolean; endpoints?: OccEndpoints; legacy?: boolean; }; media?: { baseUrl?: string; }; loadingScopes?: LoadingScopes; }'.Types of property 'occ' are incompatible.Type '{ baseUrl2: string; prefix: string; }' is not assignable to type '{ baseUrl?: string; prefix?: string; useWithCredentials?: boolean; endpoints?: OccEndpoints; legacy?: boolean; }'.Object literal may only specify known properties, but 'baseUrl2' does not exist in type '{ baseUrl?: string; prefix?: string; useWithCredentials?: boolean; endpoints?: OccEndpoints; legacy?: boolean; }'. Did you mean to write 'baseUrl'?ts(2326)
Peek Problem
No quick fixes available

这个config的类型为StorefrontConfig:

其定义在这个文件里:“C:\Code\SPA\mystore\node_modules@spartacus\storefront\storefront-config.d.ts”

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

SAP Spartacus里的StorefrontConfig静态类型相关推荐

  1. SAP Spartacus 里的 icon 设计

    同 SAP Fiori 一样,SAP Spartacus 里也有大量的自定义 icon 设计,比如下图的 iconTypes.RESET: 需要调用 iconLoader 获取 RESET icon ...

  2. Media Query在SAP Spartacus里的用途

    Media queries are useful when you want to modify your site or app depending on a device's general ty ...

  3. SAP Spartacus里的feature module

    SAP Spartacus里Component的使用受featureModule控制:

  4. SAP Spartacus 里的 .release-it.json 文件

    在 SAP Spartacus package.json 里有一个依赖叫做 release-it: 这个工具的链接:https://github.com/release-it/release-it 这 ...

  5. 如何找到 SAP Spartacus 里某个 Component TypeScript 编译后生成的 JavaScript 位置

    需求 如何找到触发该网络请求的准确代码位置? 从 initiator 里查看调用栈上下文,一点头绪也没有. 找到触发该网络请求的控件的 selector:cx-register 在 Storefron ...

  6. SAP Spartacus 里的 cxOutletRef 指令执行过程分析

    先看 cxOutletRef 指令的效果:ng-template 里定义了如下图标 1 区域所示的自定义 UI,通过 cxOutletRef, 将其插入到图标 2 所示的 ProductDetails ...

  7. SAP Spartacus里的localStorage用法

    window-ref.ts: get nativeWindow(): Window {return typeof window !== 'undefined' ? window : undefined ...

  8. SAP Spartacus里product数据请求的HTTP url是在哪里维护的

    我们打开SAP Spartacus home页面时,能观察到product carousel里待显示的product数据从后台被请求: 随便点开一个url,格式如下: https://jerry.ea ...

  9. SAP Spartacus里modifiedtime的大小写问题

    从cms返回的Component数据,modifiedtime全部小写: https://github.com/SAP/spartacus/issues/2521 这个issue里,把所有modifi ...

最新文章

  1. RONG·基础与未来——规模化园区在数据时代如何实现内生增长?
  2. 推断给定的IP地址是否是内网IP
  3. java线程 打印_Java多线程实战之交叉打印的两种方法
  4. 【小白学习PyTorch教程】十六、在多标签分类任务上 微调BERT模型
  5. 宝塔面板怎么下载php,宝塔面板下怎么安装Mosquitto-php扩展
  6. 将数组作为参数,调用该函数时候给的是数组地址还是整个数组
  7. 通过图片 找到桌面相同图片区域坐标_非常萌的桌面工具-bongo cat mver0.1.6
  8. mset redis_redis mset string 命令简介
  9. mina 和 xsocket
  10. idea格式化代码小技巧
  11. 信息安全技术(俞承杭)期末复习
  12. vue-echart简单使用
  13. libvlc.java_java – LibVlc android无法加载库
  14. pytorch 模型与tf模型转换
  15. 自定义Drawable 实现图片圆角、圆形、椭圆形
  16. python开发数据管理系统客户桌面_实践是最好的老师:给中级 Python 开发人员的 13 个项目构想...
  17. 基于深度学习的显著性目标检测方法综述
  18. 《云》赏析-[唐]来鹄古诗
  19. Ubuntu开机界面出现“error found when loading /root/.profile”(修改用户权限)
  20. C实现三子棋 人机对弈

热门文章

  1. LNMP_静态文件不记录日志,配置缓存
  2. 【REACT NATIVE 系列教程之十三】利用LISTVIEW与TEXTINPUT制作聊天/对话框获取组件实例常用的两种方式...
  3. SQL server经典电子书、工具和视频教程汇总
  4. Linux开机启动过程详细分析
  5. MySQL 7种日志类型 详解
  6. WebService系列(三)--创建自己的WebService
  7. network programming-简单的TCP客户服务器编程
  8. Java核心类库-IO-打印流(PrintStream/PrintWriter)
  9. Atitit.多媒体区----web视频格式的选择总结
  10. 俄罗斯为何把微积分下放到中学讲授?