Overview

This is a memo on how to address the error “Cannot find name ‘queryContent’.” that occurred in Nuxt Content.

Cause

It appears that Nuxt Content v3 was released on 2025/1/16.

https://content.nuxt.com/blog/v3

As a result, queryContent has been changed to queryCollection and similar.

Solution

As described in the following, it appears necessary to create a content.config.ts file and change to using queryCollection and similar.

https://content.nuxt.com/blog/v3#️-content-collections

By applying the above changes, the error was resolved.

Summary

I hope this serves as a helpful reference for migrating from Nuxt Content v2 to v3.