The preview failed to compile with the following build error:
./app/seller/list/page.tsx:3:1
Export getCategories doesn't exist in target module
1 | 'use client'
2 |
> 3 | import { createListing, getCategories } from '@/app/actions/seller'
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4 | import { Button } from '@/components/ui/button'
5 | import { Upload, X } from 'lucide-react'
6 | import { useEffect, useState } from 'react'
The export getCategories was not found in module [project]/app/actions/seller.ts [app-client] (ecmascript).
Did you mean to import getSellerListing?
All exports of the module are statically known (It doesn't have dynamic exports). So it's known statically that the requested export doesn't exist.
Import traces:
Client Component Browser:
./app/seller/list/page.tsx [Client Component Browser]
./app/seller/list/page.tsx [Server Component]
Client Component SSR:
./app/seller/list/page.tsx [Client Component SSR]
./app/seller/list/page.tsx [Server Component]
Revise the code to address the error.
I was previewing: /