Cannot find module 'astro:content' or its corresponding type declarations

February 23, 2023

This one is an easy fix fortunately.

In your terminal run npm i astro@beta and if you if you have the MDX integration, also run  npm i @astrojs/mdx@beta as well.

Restart your code editor and then rerun with npm run dev . The error should have disappeared.

← Go home