Details
-
Bug
-
Status: Closed
-
Top
-
Resolution: Fixed
-
13.2.0
-
None
-
None
-
2
-
Tiger
-
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
- is a result of
-
CHANNELMGR-2318 Provide properly compiled modules for Open UI extension library
- Closed
- relates to
-
CMS-11962 OpenUI library integration tests
- Open