headstartwp
headstartwp copied to clipboard
Build fails due to Link component's type
Describe the bug
After initial setup, npm run build
fails for me with the following error: "Type error: Type '({ href, rel, children, target, className }: LinkProps) => JSX.Element' is not assignable to type 'ReactNode'."
Steps to Reproduce
- Run
npx create-next-app --use-npm -e https://github.com/10up/headstartwp/tree/trunk/projects/wp-nextjs
andcd
into the directory it creates. - Duplicate .env as .env.local and enter details for a new local WordPress install with the HeadstartWP plugin installed and activated.
- Run
npm run build
. - See the error.
Screenshots, screen recording, code snippet
Environment information
No response
WordPress information
- WordPress: v6.6.1
- HeadstartWP: v1.1.3
- Host: LocalWP
Code of Conduct
- [X] I agree to follow this project's Code of Conduct