Get an issue when I develop and used the custom widget in application

0
Please find below ss -  Widget are successfully deployed but still having the issue -
asked
1 answers
0

Hi Aditya,

 

This warning appears when Studio Pro cannot read the package.xml inside your custom widget. It usually happens due to one of the following reasons:

 

  •  The widget folder structure is incorrect
  • package.xml is missing or not properly formed
  •  The widget name inside package.xml doesn’t match the folder name
  •  Extra files from build (like node_modules or dist folders) are zipped incorrectly

 

Fix: Correct folder + package.xml structure

 

Make sure your widget ZIP contains (example):

 

CustomWidget/

       widget/

               widget.js

               widget.xml / package.xml

 package.xml

 

Tips:

 

Always zip the widget root folder (not the inner files directly)

Validate your package.xml for XML errors

Restart Studio Pro after replacing the widget

Once structure is valid and XML is readable, the warning will disappear, and widget will load fine.

 

answered