docus
docus copied to clipboard
[Bug] defineAppConfig is not defined
I'm getting the error: defineAppConfig is not defined
.
To reproduce:
- Install Docus as is from the docs with
npx nuxi@latest init docs -t themes/docus
- Run
yarn install
- Got the error
EDIT: I tried installing with npx nuxi init docs -t themes/docus
on an empty parent folder and it worked.
I'm making a new module for Nuxt, but I can't make docs using Docus because of this. It only works if the root folder is empty. Even though the root folder has the same Nuxt version as the docs, it doesn't work.
I'm making a new module for Nuxt, but I can't make docs using Docus because of this. It only works if the root folder is empty. Even though the root folder has the same Nuxt version as the docs, it doesn't work.
We have the same error for a while but sadly have not found a solution https://github.com/nuxt-themes/docus/issues/680
@danielroe ; it's not the first time I hear from these kind of issues with auto-imports in root project configuration files.
I've also encountered a defineNuxtConfig is undefined
in the nuxt/image
docs directory lately.
Is there something I'm missing here or a suggested workaround in case this happens?
Thanks 🙏
Is there a possibility that there is a .nuxtrc
file in a parent directory that sets imports.autoImports=false
?
Is there a possibility that there is a
.nuxtrc
file in a parent directory that setsimports.autoImports=false
?
Yes there is! Can we override it with a new .nuxtrc
in the docs subfolder? If yes it may make sense to include a default one when generating a new docus project to avoid confusion.
Absolutely, you can. :+1:
Here's an example: https://stackblitz.com/edit/github-jhx2ud
I got the same problem before. It seems to be solved when i updated the version to the latest 1.14.4
.