diff --git a/packages/stack-server/src/app/(main)/(protected)/(outside-dashbaord)/new-project/page-client.tsx b/packages/stack-server/src/app/(main)/(protected)/(outside-dashbaord)/new-project/page-client.tsx
index 7db766e99..4eaf3364d 100644
--- a/packages/stack-server/src/app/(main)/(protected)/(outside-dashbaord)/new-project/page-client.tsx
+++ b/packages/stack-server/src/app/(main)/(protected)/(outside-dashbaord)/new-project/page-client.tsx
@@ -5,7 +5,7 @@ import { Separator } from "@/components/ui/separator";
import { yupResolver } from "@hookform/resolvers/yup";
import { Form } from "@/components/ui/form";
import { InputField, SwitchListField } from "@/components/form-fields";
-import { runAsynchronously, wait } from "@stackframe/stack-shared/dist/utils/promises";
+import { runAsynchronously, runAsynchronouslyWithAlert, wait } from "@stackframe/stack-shared/dist/utils/promises";
import { useRouter } from "@/components/router";
import { useState } from "react";
import { Button } from "@/components/ui/button";
@@ -79,7 +79,7 @@ export default function PageClient () {
diff --git a/packages/stack-server/src/components/settings.tsx b/packages/stack-server/src/components/settings.tsx
index 031f9d2bf..419303322 100644
--- a/packages/stack-server/src/components/settings.tsx
+++ b/packages/stack-server/src/components/settings.tsx
@@ -12,7 +12,7 @@ import { Button } from "./ui/button";
import React, { useEffect, useId, useRef, useState } from "react";
import { Label } from "./ui/label";
import { DelayedInput, Input } from "./ui/input";
-import { runAsynchronously } from "@stackframe/stack-shared/dist/utils/promises";
+import { runAsynchronously, runAsynchronouslyWithAlert } from "@stackframe/stack-shared/dist/utils/promises";
import { Accordion } from "@radix-ui/react-accordion";
import { AccordionContent, AccordionItem, AccordionTrigger } from "./ui/accordion";
import { FieldValues, useForm } from "react-hook-form";
@@ -114,7 +114,7 @@ export function SettingInput(props: {
runAsynchronously(props.onChange?.(e.target.value))}
+ onChange={(e) => runAsynchronouslyWithAlert(props.onChange?.(e.target.value))}
/>
{props.actions}
@@ -177,10 +177,10 @@ export function FormSettingCard(
>
}>
);
-}
\ No newline at end of file
+}
diff --git a/packages/stack-server/src/components/ui/button.tsx b/packages/stack-server/src/components/ui/button.tsx
index b590b9cf9..b74b7b404 100644
--- a/packages/stack-server/src/components/ui/button.tsx
+++ b/packages/stack-server/src/components/ui/button.tsx
@@ -3,7 +3,7 @@ import { Slot } from "@radix-ui/react-slot";
import { cva, type VariantProps } from "class-variance-authority";
import { cn } from "@/lib/utils";
-import { runAsynchronously } from "@stackframe/stack-shared/dist/utils/promises";
+import { runAsynchronouslyWithAlert } from "@stackframe/stack-shared/dist/utils/promises";
import { Spinner } from "./spinner";
import { useAsyncCallback } from "@stackframe/stack-shared/dist/hooks/use-async-callback";
@@ -75,7 +75,7 @@ const Button = React.forwardRef(
{...props}
ref={ref}
disabled={props.disabled || loading}
- onClick={(e) => runAsynchronously(handleClick(e))}
+ onClick={(e) => runAsynchronouslyWithAlert(handleClick(e))}
>
{loading && }
{children}
diff --git a/packages/stack-server/src/components/ui/error-page.tsx b/packages/stack-server/src/components/ui/error-page.tsx
index 84f39a225..58ed2b60a 100644
--- a/packages/stack-server/src/components/ui/error-page.tsx
+++ b/packages/stack-server/src/components/ui/error-page.tsx
@@ -28,7 +28,7 @@ export default function ErrorPage(props: {
{props.description}
-