Skip to content
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

navLinks config option is broken #648

Open
orhid opened this issue Jul 14, 2024 · 0 comments
Open

navLinks config option is broken #648

orhid opened this issue Jul 14, 2024 · 0 comments

Comments

@orhid
Copy link

orhid commented Jul 14, 2024

i tried to deploy my vault on vercel as suggested, but ever since updating my config.mjs to include navLinks, the build breaks with the following log

...
[09:44:21.518] Running "install" command: `npm install`...
[09:44:23.277] npm WARN ERESOLVE overriding peer dependency
[09:44:23.278] npm WARN While resolving: [email protected]
[09:44:23.278] npm WARN Found: [email protected]
[09:44:23.278] npm WARN node_modules/react
[09:44:23.278] npm WARN   react@"^18.2.0" from the root project
[09:44:23.278] npm WARN   24 more (@docsearch/react, @floating-ui/react-dom, ...)
[09:44:23.278] npm WARN 
[09:44:23.278] npm WARN Could not resolve dependency:
[09:44:23.278] npm WARN peer react@"^16.6.3 || ^17.0.0" from [email protected]
[09:44:23.279] npm WARN node_modules/kbar/node_modules/react-virtual
[09:44:23.279] npm WARN   react-virtual@"^2.8.2" from [email protected]
[09:44:23.279] npm WARN   node_modules/kbar
[09:44:23.279] npm WARN 
[09:44:23.279] npm WARN Conflicting peer dependency: [email protected]
[09:44:23.279] npm WARN node_modules/react
[09:44:23.279] npm WARN   peer react@"^16.6.3 || ^17.0.0" from [email protected]
[09:44:23.279] npm WARN   node_modules/kbar/node_modules/react-virtual
[09:44:23.279] npm WARN     react-virtual@"^2.8.2" from [email protected]
[09:44:23.279] npm WARN     node_modules/kbar
[09:44:26.221] 


[09:44:31.800] ./config/siteConfig.ts:12:7
[09:44:31.800] Type error: Type '{ theme: any; title: string; description: string; author: string; domain: string; navLinks: { href: string; name: string; }[]; showToc: boolean; showSidebar: boolean; showEditLink: boolean; showLinkPreviews: boolean; ... 7 more ...; peopleDir: string; }' is not assignable to type 'SiteConfig'.
[09:44:31.800]   Type '{ theme: any; title: string; description: string; author: string; domain: string; navLinks: { href: string; name: string; }[]; showToc: boolean; showSidebar: boolean; showEditLink: boolean; showLinkPreviews: boolean; ... 7 more ...; peopleDir: string; }' is not assignable to type '{ title: string; description: string; showEditLink: boolean; showToc: boolean; showSidebar: boolean; showLinkPreviews: boolean; author: string; authorLogo: string; domain: string; analytics: string; ... 7 more ...; navLinks: never[]; }'.
[09:44:31.800]     Types of property 'navLinks' are incompatible.
[09:44:31.801]       Type '{ href: string; name: string; }[]' is not assignable to type 'never[]'.
[09:44:31.801]         Type '{ href: string; name: string; }' is not assignable to type 'never'.
[09:44:31.801] 
...
[09:44:31.843] Error: Command "npm run export" exited with 1
[09:44:32.219] 

this is my config file :

const config = {
  title : "vishnu",
  navLinks : [
    {href : "/zug", name : "zug"},
  ],
  showToc : true,
  showSidebar : true,
};

export default config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant