Undefined variable: _instance

I’m trying to create a FilePond component. I’ve got as far as the code below.

        server: {
            process: (fieldName, file, metadata, load, error, progress, abort, transfer, options) => {
                @this.upload('attachment', file, load, error, progress)

    FilePond.create( $refs.input )

    <input type="file" x-ref="input">

    <link href="https://unpkg.com/filepond/dist/filepond.css" rel="stylesheet">

    <script src="https://unpkg.com/filepond/dist/filepond.js"></script>

When displaying the view, the following error is generated:


Undefined variable: _instance (View: /Users/simon/Act/mts-nova/resources/views/components/input/filepond.blade.php) (View: /Users/simon/Act/mts-nova/resources/views/components/input/filepond.blade.php)

Are you using the latest version of Livewire: Yes

Any help or suggestions would be much appreciated.

Did you ever figure this issue out? I’m experiencing the same issue.

Unfortunately, I have still not been able to resolve this.


I’m having the same issue, did you fix it?

Has anyone done it yet?

You can only access livewire properties from within a livewire component. Make sure the component in question is a livewire component itself, or is at least nested within one.

In my case, the error was thrown by an abstracted component used in livewire components, as well as regular blade templates. To get around this issue, I used blade @if directives to return a blade-safe version of the component if $attributes->wire('model')->value is falsey. You may be able to adapt this to suit your situation.