Javascript 容器中未显示重用组件视图 现在我正在开发一个UI5应用程序,它有一个自己的库,它是通过npm链接获得的(用于本地开发)。

Javascript 容器中未显示重用组件视图 现在我正在开发一个UI5应用程序,它有一个自己的库,它是通过npm链接获得的(用于本地开发)。,javascript,sapui5,sap-fiori,ui5-tooling,Javascript,Sapui5,Sap Fiori,Ui5 Tooling,该库拥有一个它公开的组件,我在consumer apps视图中的sap.ui.core.ComponentContainer中使用该组件 this.getOwnerComponent() .createComponent({ usage: "configurator", settings: {}, async: true, }) .then((component) => { this.g

该库拥有一个它公开的组件,我在consumer apps视图中的sap.ui.core.ComponentContainer中使用该组件

      this.getOwnerComponent()
    .createComponent({
      usage: "configurator",
      settings: {},
      async: true,
    })
    .then((component) => {
      this.getView().byId("childContainer").setComponent(component);
    })
    .catch(function (oError) {
      jQuery.sap.log.error(oError);
    });
不幸的是,ComponentContainer中不会显示used components视图。组件本身被调用(已调试),视图的控制器也被调用。这一观点本身并非如此

关于控制台错误,我只看到i18n和预加载文件存在一些问题。据我所知,这不应该使应用程序崩溃。 另外,如果我只是通过自己的index.html文件启动嵌入式应用程序(我的ComponentContainer中使用的应用程序),那么一切都可以正常工作并显示出来

在我的库ui5.yaml文件中,我仍然使用specificationVersion 1.1,因为2.0会生成一个错误:

Unsupported specification version 2.1. Your UI5 CLI installation might be outdated
我刚刚验证了我使用的是最新版本(2.10.0)

有人能帮忙吗? 丹尼尔