64robots / nova-image-cropper

Image Field with built-in cropper for Laravel Nova
57 stars 16 forks source link

Save Images: Unhandled Promise Rejection: TypeError (Safari/Firefox) #13

Closed Yelles closed 5 years ago

Yelles commented 5 years ago

Hi,

A form with an Image Cropper Field can not be saved without changing image.

On Safari/Firefox (Chrome works fine)

JS Error Message: Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'e.t0.response.status')

Laravel Nova Image Field had the same issue (resolved now) : https://github.com/laravel/nova-issues/issues/378

albalooshi commented 5 years ago

I am facing the same issue.

jakobfdev commented 5 years ago

The mentioned issue laravel/nova-issues#378 regarding the image field is not really solved, although closed. I still get it with v1.2.1

The exception looks exactly like this.

// EDIT: this is not correct anymore, 1.2.1 works for me.

Yelles commented 5 years ago

The mentioned issue laravel/nova-issues#378 regarding the image field is not really solved, although closed. I still get it with v1.2.1

The exception looks exactly like this.

are you sure ? I see you've edited your post on the mentioned issue laravel/nova-issues#378

beliolfa commented 5 years ago

Applied fix by Nova File field. Please confirm this is fixed in 1.1.1.

jakobfdev commented 5 years ago

@Yelles sorry, you're right. I had a third party problem... now everything works as expected.

jakobfdev commented 5 years ago

Applied fix by Nova File field. Please confirm this is fixed in 1.1.1.

@disitec doesn't the commit's number tag (1.1.1) say so already?

Yelles commented 5 years ago

Applied fix by Nova File field. Please confirm this is fixed in 1.1.1.

Hi, still not working :(

I have to Click on Edit, then Done. The save will work after that.

Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'e.t0.response.status')

michielfb commented 5 years ago

Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'e.t0.response.status')

I'm getting the same error in Firefox when editing a resource on laravel/nova: v1.3.1 and r64/nova-image-cropper:1.1.1

beliolfa commented 5 years ago

Just pushed 1.1.2.

Can you try again @Yelles @michielfb

michielfb commented 5 years ago

@disitec Thanks! After I updated to 1.1.2 it now works as expected in Firefox.

Yelles commented 5 years ago

fully working on Safari, thanks again !