ahmedkandel / nova-s3-multipart-upload

A Laravel Nova resource tool to upload files directly to Amazon S3. You can (upload | download | delete) single, multiple, small or big files.
MIT License
23 stars 22 forks source link

Field won't render: "_ is not defined" Error #28

Open guillermo-lopez opened 8 months ago

guillermo-lopez commented 8 months ago

Hello,

I installed the package the page won't load when I load the page I get:

ReferenceError: _ is not defined
    at Proxy.initUppy (nova-s3-multipart-upload:2:804565)
    at Proxy.data (nova-s3-multipart-upload:2:804365)
    at Ho (runtime-core.esm-bundler.js:3473:30)
    at Za (runtime-core.esm-bundler.js:7729:7)
    at runtime-core.esm-bundler.js:7652:5
    at Va (runtime-core.esm-bundler.js:7581:36)
    at O (runtime-core.esm-bundler.js:5908:7)
    at V (runtime-core.esm-bundler.js:5874:9)
    at w (runtime-core.esm-bundler.js:5342:11)
    at B (runtime-core.esm-bundler.js:5590:7)

I am on Laravel 10.44 Nova 4.32.13

My code:

            NovaS3MultipartUpload::make('attachments')
                ->path('mail')
                ->allowMultipleUploads()
                ->storeAsMultipleArray('attachments'),

Model:

    protected $casts = [
        ...,
        'attachments' => 'array',
    ];

    protected $fillable = [
        ...,
        'attachments',
    ];

image