Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Why isn't my custom component appearing in UI Builder?

ELMAHDI
Tera Expert

Hello community hope you doing well. 

 

I just finished working on sample component using the snc ui framework everything went well from installation to deploying.

Note : Am using PDI 

Capture d’écran 2025-02-20 à 12.04.49.png

And here's my now-ui.json

Capture d’écran 2025-02-20 à 12.09.42.png

As you can see, the component is well deployed. i did also check the tables containing the component and the exists there. Here is an example

Capture d’écran 2025-02-20 à 12.07.01.png

Thank you for your effort and time.

I really appreciate if you make this post helpful so it can appear to others in the community.

6 REPLIES 6

My issue was that when you do createCustomElement the registered web component must be prefixed with the vendor code for the instance.

Example:  'x-' concatenated with the 'glide.appcreator.company.code property'.

Try to use --force when deploying, but basically sky is the limit when it comes to issues in that entire framework.

Ceatry
Tera Contributor

My solution was to not use @Servicenow/library-translate

Somehow when i removed the package and usage, the components worked fine.

To be able use the component in my portal widget, I also had to do some tweaks with the lazy loading of uxf (onDemandComponent)

Seems to work now