Skip to content

Conversation

@kunukn
Copy link

@kunukn kunukn commented Feb 19, 2023

Stable Nuxt 3 version imports the config like this.

import { defineNuxtConfig } from 'nuxt/config'

#3

@kunukn
Copy link
Author

kunukn commented Feb 19, 2023

All the feature branches should probably also be updated.

02-begin
02-end
etc..

@jjaimealeman
Copy link

I currently have it working without issue on 3.3.2.
I just finished the tutorial today.

https://build-a-blog-nuxt3-content.netlify.app/
https://github.com/jjaimealeman/build-a-blog-nuxt3-content

{
  "name": "nuxt-app",
  "private": true,
  "scripts": {
    "build": "nuxt build",
    "dev": "nuxt dev",
    "generate": "nuxt generate",
    "preview": "nuxt preview",
    "postinstall": "nuxt prepare"
  },
  "devDependencies": {
    "@nuxt/content": "^2.5.2",
    "nuxt": "^3.3.2"
  }
}

@frodrisan
Copy link

All the feature branches should probably also be updated.

02-begin 02-end etc..

Hi, in my case, I ended up consulting the documentation page and was able to update it without any problems. Basically, you just need to change:

"const { data: blogPostList } = useAsyncData(‘blogPostList’, () => {

return queryContent(‘/blog’).find()

})", for the new version provided in the documentation.

And add the: “content.config.ts” with a structure similar to the example, slightly adapted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants