Usage of mx.ui namespace in plugable widgets

0
Hi! I have experienced a problem with building a release version of my plugable react widget for Mendix 8. I woudl like to execute code like: mx.ui.getContentForm().path to get path of current page, but the npm package “mendix-client” seems to have no module exporting “mx” namespace. Has anyone experienced a similar problem?  npm package: https://www.npmjs.com/package/mendix-client client API documentation: https://apidocs.mendix.com/8/client/mx.ui.html Can you advise me how to import the client API package in my widget? Thanks!
asked
1 answers
1

Hi,

Have you tried to add ‘window’ in front of it:

 

window.mx.ui

answered