इसे छोड़कर कंटेंट पर जाएं
This is an unmaintained snapshot of the Astro v4 docs. View the latest docs.

Can't load the middleware.

यह कंटेंट अभी तक आपकी भाषा में उपलब्ध नहीं है।

MiddlewareCantBeLoaded: An unknown error was thrown while loading your middleware.

Thrown in development mode when middleware throws an error while attempting to loading it.

For example:

import {defineMiddleware} from "astro:middleware";
throw new Error("Error thrown while loading the middleware.")
export const onRequest = defineMiddleware(() => {
return "string"
});
योगदान करें

आपके दिमाग में क्या है?

समुदाय