【问题标题】:Not able to load spartacus storefront after Upgrading spartacus from 3.0.0 to 3.3.0将斯巴达克斯从 3.0.0 升级到 3.3.0 后无法加载斯巴达克斯店面
【发布时间】:2021-06-09 03:24:36
【问题描述】:

将 spartacus 版本从 3.2.0 升级到 3.3.0 后,在加载店面时出现以下错误。 Yarn 构建或服务器启动时没有错误,但仅在尝试打开店面时 errors visible in developers tool

【问题讨论】:

标签: spartacus-storefront


【解决方案1】:

将静态属性 ModalService.rootComponent 替换为惰性求值的 getter(不是在服务实例化期间),但仅在调用 #modal 方法时。

protected get rootComponent() {
    return this.applicationRef?.components?.[0]?.location?.nativeElement;
 }

https://github.com/SAP/spartacus/issues/12632#issuecomment-852198709

【讨论】:

    猜你喜欢
    • 2021-04-24
    • 2021-09-11
    • 2021-05-27
    • 1970-01-01
    • 1970-01-01
    • 2021-04-25
    • 2020-09-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多