Closed vkommuri2897 closed 1 year ago
I discussed this with Luke, and it sounds like this was most likely resolved through other communication channels. If this is still an active issue, please let us know and we can re-open it and provide assistance.
Hi,
I am getting below error with my view model. I am providing view model code below. I am not getting error if i do not extend CustomViewControllerBase in view model. What is the right procedure here.
ERROR MESSAGE: Cannot read properties of undefined (reading 'CustomViewControllerBase') Evaluating https://localhost:446/POS/Extensions/CDSG.Commerce.InventItemBarcode/Views/PrintBarcode/PrintBarcodeViewModel.js Evaluating https://localhost:446/POS/Extensions/CDSG.Commerce.InventItemBarcode/Views/PrintBarcode/PrintBarcodeView.js Loading Extensions/CDSG.Commerce.InventItemBarcode/Views/PrintBarcode/PrintBarcodeView
Code: #################################### import Views from "PosApi/Create/Views"; import { ClientEntities } from "PosApi/Entities"; import { Entities } from "../../DataService/DataServiceEntities.g"; import { InventItemBarcodeController } from "../../DataService/DataServiceRequests.g"; //import ko from "knockout"; import { ObjectExtensions } from "PosApi/TypeExtensions";
export default class PrintBarcodeViewModel extends Views.CustomViewControllerBase {
@param {HTMLElement} element The root element for the view. */ public onReady(element: HTMLElement): void { }
/**