Step #1 would be to tell us what the error is? Right it looks like it might be an error just in your React code, before creation of a TabSet is even attempted.
_5.add is not a function TypeError: _5.add is not a function at _3.isc_Canvas_addChild [as addChild]
(http://localhost:3000/shared/isomorphic/system/modules/ISC_Core.js:3877:366) at _3.isc_TabSet_makeTabBar [as makeTabBar]
(http://localhost:3000/shared/isomorphic/system/modules/ISC_Containers.js:342:160) at _3.isc_TabSet_initWidget [as initWidget]
(http://localhost:3000/shared/isomorphic/system/modules/ISC_Containers.js:337:6) at _3.isc_Canvas_init [as init]
(http://localhost:3000/shared/isomorphic/system/modules/ISC_Core.js:3598:6) at _3.isc_Class_completeCreation [as completeCreation]
(http://localhost:3000/shared/isomorphic/system/modules/ISC_Core.js:401:6) at Object.isc_c_Class_create
(http://localhost:3000/shared/isomorphic/system/modules/ISC_Core.js:261:47) at TabSet.__createSCInstance
(http://localhost:3000/static/js/bundle.js:44764:27) at http://localhost:3000/static/js/bundle.js:45055:32 at Array.forEach (<anonymous>) at VLayout.getPropertyValue (http://localhost:3000/static/js/bundle.js:45002:25) at VLayout._getComponentConfigWithChildren
(http://localhost:3000/static/js/bundle.js:44931:32) at VLayout.getComponentConfigWithChildren (http://localhost:3000/static/js/bundle.js:44894:17) at VLayout._createSCInstance (http://localhost:3000/static/js/bundle.js:44747:23) at VLayout.componentDidMount
(http://localhost:3000/static/js/bundle.js:44690:10) at ki (http://localhost:3000/shared/js/react-dom.js:2:104072) at bi
(http://localhost:3000/shared/js/react-dom.js:2:103857) at yi (http://localhost:3000/shared/js/react-dom.js:2:103401) at
http://localhost:3000/shared/js/react-dom.js:2:115069 at ws (http://localhost:3000/shared/js/react-dom.js:2:115571) at ls
(http://localhost:3000/shared/js/react-dom.js:2:108137) at S (http://localhost:3000/shared/js/react-dom.js:2:1399) at MessagePort.T
(http://localhost:3000/shared/js/react-dom.js:2:1931)
The problem is that when this.templatesDS.cacheData is an empty array, the React code creates an empty <tabs> element which gets passed as an invalid structure to the SmartClient framework.
The SmartClient React integration expects the tabs property to either be:
Not present at all (undefined)
An array of Tab configurations
When you conditionally render <tabs>, but the array is empty, you’re creating an empty container that doesn’t translate to a valid tabs array.
Solution: Don’t render the <tabs> element at all when the array is empty:
We’ve now bulletproofed the framework so that <tabs></tabs> no longer crashes. Will be available for tomorrow’s builds, it would be great if you could confirm it works with your original code.
This looks like it’s a problem with something outside of the code block you’ve shown. It might be that, with that shorthand conditional, you are basically providing the string “false” in the middle of your JSX, which is invalid.
started working when this.templatesDS.cacheData = .
Here are my changes:
_shouldInsertTypeDeclaration(typeName, child) {
let children = child.props.children;
if (!children) return;
let outerDesc = this._getClassPropertyDescriptor(typeName, child.type);
if (!outerDesc) return;
const isChildrenArray = isc.isAn.Array(children); // for me
if((isChildrenArray && !children.length) || !children.type) return; // for me
let propName = isChildrenArray ? children[0].type : children.type; // for me
You’ve provided some context lines above your proposed patch, but none below. Just to confirm, your JSX code snippet works fine while retaining the original source lines below “let propName = …” right?
Also, we ask that when a bug is reported, you include the SmartClient version that you’re using. Can you please provide the result of isc.version (i.e. evaluated in the browser console)?
the child parameter has child.props.children = and no children.type, so I excluded such cases.
While debugging, I also noticed that in constructions like <items>, <tabs>, or <members>, children.type is undefined. However, child.props.type is not empty and has the value ‘items’, ‘tabs’, or ‘members’ respectively. But these are just my observations…
Also, sorry for not specifying the isc version earlier.
Here it is now:
We applied a fix to avoid crashing in your scenario back to SC 13.1, based on your original code snippet (thanks for confirming the end of the function need not change).
This should be present in the nightly builds published this week (2025-09-22 and beyond).