Cropper.js Preventing File Uploads

When trying to upload images via the File Widget in smart actions the action fails with an error in the JS console indicating that cropper.js cannot be imported. We’ve not made any changes on our end that I can see.

Expected behavior

Uploading a file via the File Widget sends the data to our backend.

Actual behavior

The payload received by our backend is empty.

Failure Logs

vendor-947006295e18e5315bbbfc49f1ac89d8.js:13 Uncaught (in promise) Error: Could not find module `cropperjs` imported from `client/mixins/cropper-mixin`
    at vendor-947006295e18e5315bbbfc49f1ac89d8.js:13
    at c (vendor-947006295e18e5315bbbfc49f1ac89d8.js:13)
    at s.findDeps (vendor-947006295e18e5315bbbfc49f1ac89d8.js:25)
    at c (vendor-947006295e18e5315bbbfc49f1ac89d8.js:13)
    at s.findDeps (vendor-947006295e18e5315bbbfc49f1ac89d8.js:25)
    at c (vendor-947006295e18e5315bbbfc49f1ac89d8.js:13)
    at requireModule (vendor-947006295e18e5315bbbfc49f1ac89d8.js:7)
    at n._extractDefaultExport (vendor-947006295e18e5315bbbfc49f1ac89d8.js:19319)
    at n.resolveOther (vendor-947006295e18e5315bbbfc49f1ac89d8.js:19287)
    at n.resolve (vendor-947006295e18e5315bbbfc49f1ac89d8.js:19297)
    at y (vendor-947006295e18e5315bbbfc49f1ac89d8.js:1837)
    at e.t.resolve (vendor-947006295e18e5315bbbfc49f1ac89d8.js:1811)
    at e.t.resolve (vendor-947006295e18e5315bbbfc49f1ac89d8.js:1812)
    at u (vendor-947006295e18e5315bbbfc49f1ac89d8.js:1787)
    at e.r.factoryFor (vendor-947006295e18e5315bbbfc49f1ac89d8.js:1772)
    at n.factoryFor (vendor-947006295e18e5315bbbfc49f1ac89d8.js:3306)
    at vendor-947006295e18e5315bbbfc49f1ac89d8.js:2408
    at Br (vendor-947006295e18e5315bbbfc49f1ac89d8.js:2408)
    at vendor-947006295e18e5315bbbfc49f1ac89d8.js:2453
    at e.t._lookupComponentDefinition (vendor-947006295e18e5315bbbfc49f1ac89d8.js:2453)
    at e.t.lookupComponentHandle (vendor-947006295e18e5315bbbfc49f1ac89d8.js:2437)
    at e.t.lookupComponentDefinition (vendor-947006295e18e5315bbbfc49f1ac89d8.js:2251)
    at t.resolveLayoutForTag (vendor-947006295e18e5315bbbfc49f1ac89d8.js:4079)
    at vendor-947006295e18e5315bbbfc49f1ac89d8.js:4054
    at e.t.compile (vendor-947006295e18e5315bbbfc49f1ac89d8.js:4008)
    at _ (vendor-947006295e18e5315bbbfc49f1ac89d8.js:4067)
    at t.add (vendor-947006295e18e5315bbbfc49f1ac89d8.js:4078)
    at e.compile (vendor-947006295e18e5315bbbfc49f1ac89d8.js:4046)
    at Object.evaluate (vendor-947006295e18e5315bbbfc49f1ac89d8.js:4437)
    at e.t.evaluate (vendor-947006295e18e5315bbbfc49f1ac89d8.js:4373)
    at e.t.evaluateSyscall (vendor-947006295e18e5315bbbfc49f1ac89d8.js:4709)
    at e.t.evaluateInner (vendor-947006295e18e5315bbbfc49f1ac89d8.js:4701)
    at e.t.evaluateOuter (vendor-947006295e18e5315bbbfc49f1ac89d8.js:4701)
    at e.o.next (vendor-947006295e18e5315bbbfc49f1ac89d8.js:4867)
    at e.o.execute (vendor-947006295e18e5315bbbfc49f1ac89d8.js:4866)
    at i.o.handleException (vendor-947006295e18e5315bbbfc49f1ac89d8.js:4780)
    at e.t.handleException (vendor-947006295e18e5315bbbfc49f1ac89d8.js:4797)
    at e.r.throw (vendor-947006295e18e5315bbbfc49f1ac89d8.js:4769)
    at n.evaluate (vendor-947006295e18e5315bbbfc49f1ac89d8.js:4452)
    at e.r.execute (vendor-947006295e18e5315bbbfc49f1ac89d8.js:4769)
    at e.t.rerender (vendor-947006295e18e5315bbbfc49f1ac89d8.js:4799)
    at e.s.render (vendor-947006295e18e5315bbbfc49f1ac89d8.js:2195)
    at n.r._renderRoots (vendor-947006295e18e5315bbbfc49f1ac89d8.js:2222)
    at n.r._renderRootsTransaction (vendor-947006295e18e5315bbbfc49f1ac89d8.js:2226)
    at n.r._revalidate (vendor-947006295e18e5315bbbfc49f1ac89d8.js:2226)
    at t.invoke (vendor-947006295e18e5315bbbfc49f1ac89d8.js:5003)
    at e.t.flush (vendor-947006295e18e5315bbbfc49f1ac89d8.js:4995)
    at e.t.flush (vendor-947006295e18e5315bbbfc49f1ac89d8.js:5009)
    at e.n._end (vendor-947006295e18e5315bbbfc49f1ac89d8.js:5072)
    at _boundAutorunEnd (vendor-947006295e18e5315bbbfc49f1ac89d8.js:5023)

Context

File Widget via a smart action

  • Package Version:
  • Express Version: 4.16.3
  • Sequelize Version: 5.15.1
  • Database Dialect: mysql
  • Database Version:
  • Project Name: Curator

Hi @Scott_Peterson,

This is due to a regression introduced yesterday on the platform.
We have rollbacked the culprit contribution, so it should work properly now.

Thanks for your patience.