As of Astro 7, the @clerk/astro package throws an error for components rendered using the MenuItemRenderer.astro component due to a return statement outside of a function:
I was able to circumvent the problem by commenting out this return statement, but it feels like there might be some unintended issues if the code is supposed to stop executing but continues past this point.
As of Astro 7, the
@clerk/astropackage throws an error for components rendered using theMenuItemRenderer.astrocomponent due to areturnstatement outside of a function:javascript/packages/astro/src/astro-components/interactive/UserButton/MenuItemRenderer.astro
Line 32 in 52d310c
I was able to circumvent the problem by commenting out this return statement, but it feels like there might be some unintended issues if the code is supposed to stop executing but continues past this point.