Skip to content

⚠️ Issue while following tutorial page "Tutorial - Extend with Content Collections" #6271

@eko24ive

Description

@eko24ive

URL: https://docs.astro.build/en/tutorials/add-content-collections/

When creating file src/content/config.ts and adding it's contents from the tutorial a typescript throws an error Cannot find module 'astro:content' or its corresponding type declarations.ts(2307)

After a quick google search, I stumbled upon this issue withastro/astro#5711 and running npx astro sync command has resolved this problem (by creating src/env.d.ts file)

I'll provide a PR shortly in order to update the tutorial page

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions