Next.js Discord

Discord Forum

Not able to resolve error using the <Link> component

Unanswered
Cape lion posted this in #help-forum
Open in Discord
Cape lionOP
Learning Next.js using the interactive tutorial on vercel.com

Tutorial Link: Learning Next.js using the interactive tutorial on vercel.com
https://nextjs.org/learn/dashboard-app/navigating-between-pages#the-link-component

9 Replies

Cape lionOP
@Cape lion Click to see attachment
What is link ?
What is links
?
Cape lionOP
I am not sure. I am learning webdev.
it was given in the tutorial.

I tried to define it as
const links = [ { name: 'Home', href: '/dashboard', icon: HomeIcon }, { name: 'Invoices', href: '/dashboard/invoices', icon: DocumentDuplicateIcon, }, { name: 'Customers', href: '/dashboard/customers', icon: UserGroupIcon }, ];

but its still not working