I've upgraded Next.js from 15.2.4 to 15.2.8.
I found the issue! The hooks are using SWR but the package isn't installed. Let me check what other hooks look like and then fix this by creating simple fetch-based hooks instead of SWR:
I've fixed all the hooks by removing the SWR dependency and replacing it with simple useState and useEffect hooks that use native fetch. Each hook now properly manages its own state (data, loading, error) and fetches data from the API endpoints. The syntax error should now be resolved since there's no more undefined SWR import causing parse errors.