madprabh's avatar

Error messages not displayed - Jetstream

Hey Folks,

I have a strange problem where the field validation messages are not getting displayed on the UI.

So I do get this in the response, for example

"errorBags": {
            "default": {
                "email": [
                    "The email has already been taken."
                ]
            }
        }

But on the UI it doesn't get displayed

<div class="mt-4">
                <InputLabel for="email" value="Email" />
                <TextInput
                    id="email"
                    v-model="form.email"
                    type="email"
                    class="mt-1 block w-full"
                    required
                    autocomplete="username"
                />
                <InputError class="mt-2" :message="form.errors.email" />
            </div>

This is from the default register page that comes with Jetstream/Vue stack.

0 likes
0 replies

Please or to participate in this conversation.