-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
500 error: defineAppConfig
is not defined
#680
Comments
Manually adding an import for Code: // file ~/app.config.ts
import { defineAppConfig } from '#app'
export default defineAppConfig({
docus: {
title: 'sidebase',
description: 'The official sidebase documentation.',
url: 'https://sidebase.io',
image: '/social-card-preview.png',
socials: {
twitter: '@sidebase_io',
github: 'sidebase',
},
header: {
title: 'sidebase docs',
logo: true,
showLinkIcon: true,
exclude: ['/nuxt-session', '/nuxt-parse', '/guide'],
},
aside: {
level: 1,
exclude: ['/guide', '/nuxt-session', '/nuxt-parse']
},
}
}) Error:
|
Could you also update your nuxt dependency at the root of your project to |
We are sadly having issues upgrading I just attempted to bump the dependencies, however I sadly got the same type error. Do you have any ideas why we cannot upgrade? |
We have updated https://github.com/sidebase/nuxt-auth/tree/add-docs-workflows |
If you try on a fresh repo it works? |
@zoey-kaiser ; I was waiting on fixing nuxt/framework#684 to dig on this one. Does the fix coming from it helped there? |
defineAppConfig
is not definieddefineAppConfig
is not defined
Hi! Sorry it took me a few more days to answer, I have been pretty swamped.
Sadly it does not. I attempted upgrading the project to Docus v1.1.1 (see here) and I still get the error:
Using it in an empty folder / new npm project does work! I assume it has to do with some other package in the root conflicting with docus. These are our dependencies: "dependencies": {
"@nuxt/kit": "^3.0.0-rc.12",
"defu": "^6.1.0",
"next-auth": "^4.14.0",
"requrl": "^3.0.2",
"ufo": "^1.0.0"
},
"devDependencies": {
"@nuxt/module-builder": "^0.2.1",
"@nuxt/schema": "^3.0.0",
"@nuxtjs/eslint-config-typescript": "^12.0.0",
"eslint": "^8.25.0",
"nuxt": "^3.0.0",
"ofetch": "^1.0.0"
} Thank you in advance! |
Same error on my new nuxt module. Some updates about this issue? :) |
Hello! I recently began working on a documentation page for https://github.com/sidebase/nuxt-auth. I am really happy with the DX, feature set and design of docus. However I sadly ran into an issue to which I could not find the solution yet.
I began coding my docs page in a seperate private repository. However when it came time to add it to the official module repository I received an error saying
defineAppConfig
is not defined.I copied the project folder one to one and it works in its own repo. Can this have something to do with our module setup?
Reproduction Link:
https://github.com/sidebase/nuxt-auth/tree/add-docs
sidebase/nuxt-auth#43
Environment:
Error:
Thank you in advance for any pointers or help ❤️
The text was updated successfully, but these errors were encountered: