filestack/filestack-js

Import error of UMD module - Transformation UI

paulocheque opened this issue · 0 comments

Conflict with Vue 3:

https://www.filestack.com/docs/transformations/ui/web/

<script src="https://static.filestackapi.com/transforms-ui/2.x.x/transforms.umd.min.js"></script>
<link rel="stylesheet" href="https://static.filestackapi.com/transforms-ui/2.x.x/transforms.css" />

Expected Behavior

No JS errors

Current Behavior

vue-resize.esm.js:268 Uncaught TypeError: y.use is not a function
    at Object.<anonymous> (vue-resize.esm.js:268:13)
    at 252c (transforms.umd.min.js:1:14741)
    at n (bootstrap:19:22)
    at Object.<anonymous> (v-tooltip.esm.js:1:1)
    at Object.e37d (transforms.umd.min.js:65:299768)
    at n (bootstrap:19:22)
    at Module.fae3 (transforms.umd.min.js:95:64583)
    at n (bootstrap:19:22)
    at 0 (bootstrap:83:10)
    at transforms.umd.min.js:1:1194

Possible Solution

Let the code independent of the installed Vue, or add support for Vue 3 too.

Steps to Reproduce (for bugs)

Import the Vue3 library before importing filestack