flowershow
flowershow copied to clipboard
navLinks config option is broken
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;