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.
Description
client/src/services/toastService.tsimportsToastOptionsas a regular value import fromreact-toastify. In react-toastify v11,ToastOptionsis a type-only export and must be imported usingimport type. This causes aSyntaxErrorthat 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.tsLine 1
Expected Behaviour
Client app should load without errors.