Previously, template codegen was done asynchronously, which could result in reflector state being overwritten and leading to compile errors. Update the codegen to run synchronously to ensure this does not happen. Closes #6603
Previously, template codegen was done asynchronously, which could result in reflector state being overwritten and leading to compile errors. Update the codegen to run synchronously to ensure this does not happen. Closes #6603