TACTIC Open Source
JSX process in Custom Widget - Printable Version

+- TACTIC Open Source (http://forum.southpawtech.com)
+-- Forum: TACTIC Open Source (http://forum.southpawtech.com/forumdisplay.php?fid=3)
+--- Forum: TACTIC Discussion (http://forum.southpawtech.com/forumdisplay.php?fid=4)
+--- Thread: JSX process in Custom Widget (/showthread.php?tid=219)

Pages: 1 2


RE: JSX process in Custom Widget - listy - 08-20-2021

Something wrong with my setup of babel and npm.
Same error in console, and layout not showing anything


RE: JSX process in Custom Widget - remkonoteboom - 09-09-2021

Sorry for the delay. End of summer.

I am back to looking at this a try to make this make better. After a bit of searching, I realized in put in a project setting to enable this. I should have know this as this is often done for new, experimental features.

Set "feature/process_jsx" to "true". This should enable the custom layout editor to process all javascript as jsx. Not that this should be harmless for all normal js. It will take a little longer to save as the jsx process is not fast, but since TACTIC caches the jsx in the saved custom layout, it will execute fast.


RE: JSX process in Custom Widget - listy - 09-09-2021

(09-09-2021, 06:43 PM)remkonoteboom Wrote: Set "feature/process_jsx" to "true".  This should enable the custom layout editor to process all javascript as jsx.  Not that this should be harmless for all normal js.  It will take a little longer to save as the jsx process is not fast, but since TACTIC caches the jsx  in the saved custom layout, it will execute fast.
I did this, and double checked this is enabled. But the problem is with my JSX setup. I don't have much time to investigate and searching for the problem, at this time  Sad
As i wrote earliet, i think it is babel and npm problem. Even babel executables are lied in different folder than yours


RE: JSX process in Custom Widget - remkonoteboom - 09-09-2021

No problem. Soon, I will try this on a fresh install and document my steps to get it working.