Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-11951

OpenUI Content field not registering

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Top
    • Resolution: Fixed
    • Affects Version/s: 13.2.0
    • Fix Version/s: 13.2.1, 13.3.0
    • Component/s: None
    • Labels:
      None
    • Similar issues:
    • Story Points:
      2
    • Processed by team:
      Tiger
    • Sprint:
      Tiger Sprint 210

      Description

      While trying to load the @bloomreach/ui-extension in an angular app using the code below:

      import { Component, OnInit } from '@angular/core';
      import UiExtension from "@bloomreach/ui-extension";
      
      @Component({
        selector: 'app-root',
        templateUrl: './app.component.html',
        styleUrls: ['./app.component.css']
      })
      export class AppComponent implements OnInit {
        public title = '';
        public isAuthenticated: boolean;
      
      
        async ngOnInit() {
          this.isAuthenticated = true;
           this.load();
         }
      
        load() {
          UiExtension.register().then((ui) => {
             console.log( "load 1"+ JSON.stringify(ui))
          });
        }
      }
      
      

       

      The library fails to load with the error:

      ERROR Error: Uncaught (in promise): TypeError: _bloomreach_ui_extension__WEBPACK_IMPORTED_MODULE_5___default.a.register is not a function
      TypeError: _bloomreach_ui_extension__WEBPACK_IMPORTED_MODULE_5___default.a.register is not a function
      

       

       Full error message in the attachment uiextensions.png

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                nmendes Nuno Mendes
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: