jonasmerlin / astro-seo

Makes it easy to add information that is relevant for SEO to your Astro app.
MIT License
933 stars 50 forks source link

`Unexpected "return"` error with astro@0.21.0-next.0 #23

Closed jonasmerlin closed 2 years ago

jonasmerlin commented 2 years ago

Importing Astro SEO and then compiling with astro@0.21.0-next.0 throws the following error:

6:03:57 AM [vite] Error when evaluating SSR module /src/pages/index.astro:
Error: Transform failed with 1 error:
/src/SEO.astro:120:0: error: Unexpected "return"
jonasmerlin commented 2 years ago

Right now, my best guess is that this is a bug in the new compiler, since I can't identify an unexpected return at line 120 or anywhere else.

jonasmerlin commented 2 years ago

Openend an issue upstream here: https://github.com/snowpackjs/astro/issues/1719