#Cannot find name 'defineNuxtConfig'

11 messages · Page 1 of 1 (latest)

earnest skiff
#

Start the dev server or run npx nuxi prepare

lusty crater
#

hai , sir @earnest skiff . i've encounter the same problem and still not fixing it even though i already use the npx nuxi prepare or start the dev server. it still say defineNuxtConfig is not defined.

#

if i add import { defineNuxtConfig } from "nuxt/config"; on nuxt.config.ts , it is keep saying that that im using nuxt 2.15.8 and error with Cannot start nuxt: Cannot set properties of undefined (setting 'url')

#

already tried to npx nuxi upgrade too, but it didn't solve the issue

earnest skiff
#

@lusty crater that’s a Nuxt 3 only feature

#

Or do you try using nuxt 3?

lusty crater
#

i was using nuxt 3,but it is keeps breaking up

#

even though i am trying to started new project using npx nuxi init, it still gives me defineNuxtConfig not defined and nuxt 2.15 versions

earnest skiff
#

@lusty crater can you show more, e.g. your package-lock.json

#

(or package.json)

#

Also trye npx nuxi@latest init