I go to the source, (which for once isn’t a script I made) and it is within the createReconciler module. I am not seeing where a ‘nil’ would be for the if block It returns nil; or maybe I am misunderstanding this error?
Most likely you are using the module in a different way than intended. I recommend checking out the documentation and make sure you are using is correctly. Again, without your code we can not help.
if kind == ElementKind.Host then
renderer.mountHostNode(reconciler, virtualNode)
elseif kind == ElementKind.Function then
mountFunctionVirtualNode(virtualNode)
elseif kind == ElementKind.Stateful then
element.component:__mount(reconciler, virtualNode)
elseif kind == ElementKind.Portal then
mountPortalVirtualNode(virtualNode)
else
This is the source of the error-> error(("Unknown ElementKind %q"):format(tostring(kind), 2))
end
return virtualNode
end