./node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js:43:0
Module not found: Can't resolve 'mock-aws-s3'
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./node_modules/@mapbox/node-pre-gyp/lib/ sync ^\.\/.*$
./node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js
./node_modules/bcrypt/bcrypt.js
./app/api/auth/[...nextauth]/route.ts
./app/libs/serverAuth.ts
./app/libs/index.ts
./app/hooks/useCurrentUser.ts
./app/components/sidebar/Sidebar.tsx
'use client';
import React from 'react';
import { IoHomeOutline, IoNotificationsOutline, IoBookmarkOutline, IoPersonOutline, IoLogOutOutline } from 'react-icons/io5';
import { BsTwitter } from 'react-icons/bs';
import SidebarItem from './SidebarItem';
import SidebarButton from './SidebarButton';
import useCurrentUser from '@/app/hooks/useCurrentUser';
const Sidebar = () => {
const { data: user, isLoading } = useCurrentUser();
const items = [
{
id: 1,
title: 'Home',
href: '/',
icon: IoHomeOutline
},
{
id: 2,
title: 'Notifications',
href: '/notifications',
icon: IoNotificationsOutline
},
{
id: 3,
title: 'Bookmarks',
href: '/bookmarks',
icon: IoBookmarkOutline
},
{
id: 4,
title: 'Profile',
href: '/users/124',
icon: IoPersonOutline
},
]
return (
<div className='col-span-1 h-full pr-4 md:pr-6'>
<div className='flex flex-col items-end'>
<div className='space-y-2 lg:w-[230px]'>
<div className='flex items-start py-2'>
<div className='flex items-center justify-start w-14'>
<div className='hover:bg-blue-500 transition text-white hover:text-sky-500 hover:bg-opacity-10 cursor-pointer rounded-full p-3 lg:ml-2'>
<BsTwitter className='cursor-pointer w-6 h-6' />
</div>
</div>
</div>
<div className='flex flex-col items-start w-full space-y-2'>
{items?.map((item) => (
<SidebarItem
key={item.id}
href={item.href}
title={item.title}
icon={item.icon}
/>
))}
<SidebarItem
title='Logout'
icon={IoLogOutOutline}
onClick={() => { }}
rotate
/>
<SidebarButton />
</div>
</div>
</div>
</div>
)
}
export default Sidebar