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

Question about an error #62

Open
raliclo opened this issue Jan 24, 2025 · 0 comments
Open

Question about an error #62

raliclo opened this issue Jan 24, 2025 · 0 comments

Comments

@raliclo
Copy link

raliclo commented Jan 24, 2025

Issue Repo:
https://github.com/raliclo/nextjs-tailwind-contentlayer-blog-starter
Install repo :
npm install --force

What error occured:
If the app is running in dev mode by npm run dev , error occured as following :

Error: Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>. Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor

The page renders well if I use "npm run build" and "npm run start"

Question:
Does contentlayer2 render the link using syntax so the error occured?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant