@successdav Does this still happen if you remove the layout: Layout, line?
Jul 24, 2022
7
Level 4
Vue Composition Api
in Vue options api I can set my layout like this
export default {
layout: Layout,
}
in composition api it breaks my code. the page doesn't render. Here's the code from the page below
<script setup>
import BreezeGuestLayout from '@/Layouts/Guest.vue';
import { Head, Link, useForm } from '@inertiajs/inertia-vue3';
layout: Layout,
defineProps({
canResetPassword: Boolean,
status: String,
});
const form = useForm({
email: '',
password: '',
remember: false
});
const submit = () => {
form.post(route('login'), {
onFinish: () => form.reset('password'),
});
};
</script>
I get this error in the console Uncaught (in promise) ReferenceError: defineProps is not defined
Please or to participate in this conversation.