Skip to content

[Bug]: ToastOptions import error in toastService.ts breaks entire client app #217

Description

@Git-Shubham14

Description

client/src/services/toastService.ts imports ToastOptions as a regular value import from react-toastify. In react-toastify v11, ToastOptions is a type-only export and must be imported using import type. This causes a SyntaxError that crashes the entire client app showing a white screen.

Error

Uncaught SyntaxError: The requested module 'react-toastify' does not
provide an export named 'ToastOptions'

File

client/src/services/toastService.ts

Line 1

import { toast, ToastOptions } from "react-toastify"; // ❌ Wrong

Expected Behaviour

Client app should load without errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions