Not able to resolve error using the <Link> component
Unanswered
Cape lion posted this in #help-forum
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
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 lionOP
I am not sure. I am learning webdev.
it was given in the tutorial.
I tried to define it as
but its still not working
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
And links needs to be imported
Thats the way you share data between files
@Cape lion 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
Or you need to wrjte this in the same file with your links.map