I'm trying to build an optimized og image for a blog, and I got this error when I updated the shape of the markdown fronmatter hero.src to include an @ -
❯ pnpm astro sync
error `astro sync` command failed to generate content collection types: bad indentation of a mapping entry
Hint:
Check your `src/content/config.*` file for typos.
File:
/Users/calebjasik/Git/defined.net/www/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/astro/dist/core/sync/index.js:77:11
Code:
76 | }
> 77 | throw new AstroError(
| ^
78 | {
79 | ...AstroErrorData.GenerateContentTypesError,
80 | message: AstroErrorData.GenerateContentTypesError.message(safeError.message)
Stacktrace:
GenerateContentTypesError: `astro sync` command failed to generate content collection types: bad indentation of a mapping entry
at syncInternal (file:///Users/calebjasik/Git/defined.net/www/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/astro/dist/core/sync/index.js:77:11)
at async sync (file:///Users/calebjasik/Git/defined.net/www/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/astro/dist/core/sync/index.js:29:10)
at async sync (file:///Users/calebjasik/Git/defined.net/www/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/astro/dist/cli/sync/index.js:17:20)
at async runCommand (file:///Users/calebjasik/Git/defined.net/www/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/astro/dist/cli/index.js:138:24)
at async cli (file:///Users/calebjasik/Git/defined.net/www/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/astro/dist/cli/index.js:148:5)
ex:
hero:
src: "@assets/images/blog/radio-dishes.jpg"
alt: A collection of radio dishes for long-range radio communications
