N
Nuxt7mo ago
domie

500 import not found: setupDevtoolsPlugin

I'm getting this strange error when loading up a page in my nuxt application. when i comment out the script setup block the error does not occur, so i assume it has to do something with that. When deploying the entire project to vercel the issue also doesn´t occur. I hope anyone can help me with this weird error 😄
<script lang="ts" setup>
import {toTypedSchema} from "@vee-validate/zod";
import * as z from "zod";
import {useForm} from "vee-validate";
import {useToast} from "~/components/ui/toast";
import {FormControl, FormMessage} from "~/components/ui/form";

const {signUp} = useAuth();
const {toast} = useToast();

const signupSchema = z.object({
email: z.string().email(),
username: z.string().min(5),
password: z.string().min(6),
});


const form = useForm({
validationSchema: toTypedSchema(signupSchema),
});

const onSubmitForm = form.handleSubmit(async (values) => {
try {
await signUp(values);
toast({
title: "Account created successfully!",
});
} catch (e: any) {
toast({
title: "An error occured while signing up:",
description: e.message,
variant: "destructive",
})
}
});
</script>
<script lang="ts" setup>
import {toTypedSchema} from "@vee-validate/zod";
import * as z from "zod";
import {useForm} from "vee-validate";
import {useToast} from "~/components/ui/toast";
import {FormControl, FormMessage} from "~/components/ui/form";

const {signUp} = useAuth();
const {toast} = useToast();

const signupSchema = z.object({
email: z.string().email(),
username: z.string().min(5),
password: z.string().min(6),
});


const form = useForm({
validationSchema: toTypedSchema(signupSchema),
});

const onSubmitForm = form.handleSubmit(async (values) => {
try {
await signUp(values);
toast({
title: "Account created successfully!",
});
} catch (e: any) {
toast({
title: "An error occured while signing up:",
description: e.message,
variant: "destructive",
})
}
});
</script>
No description
1 Reply
domie
domieOP7mo ago
there is also no error in the server console, and the error in the browser console does not contain a stacktrace
Want results from more Discord servers?
Add your server