Umbraco form stopped working after upgrading to v13

Hi everyone,

We recently upgraded our Umbraco site from v10 to v13.10.1 with Umbraco Forms 13.6.0.

After the upgrade, all Umbraco Forms stopped rendering on the frontend and now show this message:

Error loading Partial View script (file: ~/Views/MacroPartials/InsertUmbracoFormWithTheme.cshtml)

When checking the Log Viewer, I see the following error:

Failed “Executing PartialView: MacroSource\=”~/Views/MacroPartials/InsertUmbracoFormWithTheme.cshtml".
Umbraco.Cms.Web.Common.ModelsBuilder.InMemoryAuto.UmbracoCompilationException:
Exception of type ‘Umbraco.Cms.Web.Common.ModelsBuilder.InMemoryAuto.UmbracoCompilationException’ was thrown.
at Umbraco.Cms.Web.Common.ModelsBuilder.InMemoryAuto.CollectibleRuntimeViewCompiler.CompileAndEmit(RazorCodeDocument codeDocument, String generatedCode)
at Umbraco.Cms.Web.Common.ModelsBuilder.InMemoryAuto.CollectibleRuntimeViewCompiler.CompileAndEmit(String relativePath)
at Umbraco.Cms.Web.Common.ModelsBuilder.InMemoryAuto.CollectibleRuntimeViewCompiler.OnCacheMiss(String normalizedPath)
— End of stack trace from previous location —
at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.CreateCacheResult(HashSet`1 expirationTokens, String relativePath, Boolean isMainPage)
at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.LocatePageFromPath(String executingFilePath, String pagePath, Boolean isMainPage)
at Umbraco.Cms.Web.Website.ViewEngines.ProfilingViewEngine.GetView(String executingFilePath, String viewPath, Boolean isMainPage)
at Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.RenderPartialCoreAsync(String partialViewName, Object model, ViewDataDictionary viewData, TextWriter writer)
at Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.PartialAsync(String partialViewName, Object model, ViewDataDictionary viewData)
at AspNetCore.Views_Partials_Forms_Themes_sky_form_Render.ExecuteAsync() in …\Views\Partials\Forms\Themes\sky-form\Render.cshtml:line 53
at AspNetCore.Views_MacroPartials_InsertUmbracoFormWithTheme.ExecuteAsync() in …\Views\MacroPartials\InsertUmbracoFormWithTheme.cshtml:line 54

Has anyone else run into this issue? Any insights or suggestions would be greatly appreciated!

Thanks in advance.