spatie / laravel-medialibrary

Associate files with Eloquent models
https://spatie.be/docs/laravel-medialibrary
MIT License
5.78k stars 1.08k forks source link

TypeError: Cannot destructure property 'state' of 'undefined' as it is undefined #3694

Open jacek-majewski opened 3 months ago

jacek-majewski commented 3 months ago

Current behavior:

I have this error everytime I render components in @spatie/media-library-pro

image

image

Example:

<template>
    <MediaLibraryAttachment />
</template>

<script>
import { MediaLibraryAttachment } from "@spatie/media-library-pro-vue3-attachment";

export default {
    name: "MyComponent",
    components: { MediaLibraryAttachment },
};
</script>

Versions

vue: ^3.4.0 @spatie/media-library-pro-styles: ^1.2.5 @spatie/media-library-pro-vue3-attachment: ^1.2.5 @spatie/media-library-pro-vue3-collection: ^1.2.5