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

OpenUI Content field not registering

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Top
    • Resolution: Fixed
    • 13.2.0
    • 13.2.1, 13.3.0
    • None
    • None

    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

              Unassigned Unassigned
              nmendes Nuno Mendes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: