Loading module widgets/xxx/yyy/Zzz failed! Check script file for syntax errors.

2
Hi Team, There is an issue while trying to integrate the pluggable widget which was built using React JS snippets. I confirmed that the same snippet is working fine in React App. Reference links: https://www.fusioncharts.com/charts/gantt-charts/gantt-showing-planning-vs-actuals?framework=react https://docs.mendix.com/howto/extensibility/create-a-pluggable-widget-one   I was able to build the Mendix widget without any problems, but it is not getting rendered in the Mx UI.   Error in UI – Browser console –  Mx console –  It would be great if anyone gives me a suggestion on what I am missing in @mendix/widget. Regards.
asked
4 answers
4

Hello Abdul, do you have the problem on building the widget with the Mendix Widget builder? Could you provide the error message you get?

answered
2

Is the error message from the question title all that is returned?

answered
1

Hi Abdul.

The app store snippet widget does not support, react snippets (as far as i know)

https://appstore.home.mendix.com/link/app/113004/

Which “ React JS snippets” widget are you referring too?

Best, is to build an widget from scratch with the generator, which will scaffold all you need.

https://www.npmjs.com/package/@mendix/generator-widget

For a full tutorial see: https://docs.mendix.com/howto/extensibility/pluggable-widgets

Cheers, Andries

 

answered
0

The best way is to remove feature one by one to see which one causes error then fix it.

answered