uploadcare / uploadcare-widget

Uploadcare Widget, an ultimate tool for HTML5 file upload supporting multiple file upload, drag&drop, validation by file size/file extension/MIME file type, progress bar for file uploads, image preview.
https://uploadcare.com/products/file_uploader/
BSD 2-Clause "Simplified" License
227 stars 103 forks source link

"a.default.extend is not a function" when migrating from 3.19 -> 3.20 #937

Closed Kamilczak020 closed 1 year ago

Kamilczak020 commented 1 year ago

Description

After migrating to 3.20, app build process started crashing with the following:

info  - Collecting page data ..TypeError: a.default.extend is not a function
    at /Users/greenchill/Documents/.../node_modules/uploadcare-widget/uploadcare.lang.en.min.js:10:17490
    at /Users/greenchill/Documents/.../node_modules/uploadcare-widget/uploadcare.lang.en.min.js:10:84
    at Object.<anonymous> (/Users/greenchill/Documents/.../node_modules/uploadcare-widget/uploadcare.lang.en.min.js:10:236)
    at Module._compile (node:internal/modules/cjs/loader:1126:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
    at Module.load (node:internal/modules/cjs/loader:1004:32)
    at Function.Module._load (node:internal/modules/cjs/loader:839:12)
    at Module.require (node:internal/modules/cjs/loader:1028:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.25118 (/Users/greenchill/Documents/.../pages/articles/[articleId].js:9383:51)

For now, we've reverted to 3.19 and the issue is gone.

Expected result

Since this is not a major version release, it should not come with a breaking change (In case something changed in the API we haven't caught).

Platform

Used in Next.js. If I have a little bit more time I might try to create a minimal repro and narrow down if the issue maybe is specific to next? If so, I'll update this PR with my findings.

Environment

nd0ut commented 1 year ago

Hey @Kamilczak020,

sorry for breaking your app. It's fixed in v3.20.1