pIvan / file-upload

drag and drop file component
MIT License
87 stars 12 forks source link

Reference error only when using app in dev mode (locally) in Safari 13.1.2, Angular 9 version #48

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hello,

I have a problem with the library as it says in the title and this is an error I get in the console:

Error: Uncaught (in promise): ReferenceError: Can't find variable: DragEvent ../../node_modules/@iplab/ngx-file-upload/__ivy_ngcc__/fesm2015/iplab-ngx-file-upload.js@http://localhost:4200/wolkabout-dashboards.js:19570:93 __webpack_require__@http://localhost:4200/runtime.js:85:34 ../../libs/dashboards/src/lib/change-background/change-background-form/change-background-form.component.ts@http://localhost:4200/wolkabout-dashboards.js:831:99 __webpack_require__@http://localhost:4200/runtime.js:85:34 ../../libs/dashboards/src/lib/change-background/change-background.component.ts@http://localhost:4200/wolkabout-dashboards.js:934:134 __webpack_require__@http://localhost:4200/runtime.js:85:34 ../../libs/dashboards/src/lib/dashboards.module.ts@http://localhost:4200/wolkabout-dashboards.js:2747:124 __webpack_require__@http://localhost:4200/runtime.js:85:34 ../../libs/dashboards/src/index.ts@http://localhost:4200/wolkabout-dashboards.js:15:99 __webpack_require__@http://localhost:4200/runtime.js:85:34 __webpack_require__@[native code] onInvoke@http://localhost:4200/vendor.js:73750:39 run@http://localhost:4200/polyfills.js:346:53 http://localhost:4200/polyfills.js:1073:43 onInvokeTask@http://localhost:4200/vendor.js:73728:43 runTask@http://localhost:4200/polyfills.js:390:61 drainMicroTaskQueue@http://localhost:4200/polyfills.js:792:46 promiseReactionJob@[native code]

I'm aware of this https://stackoverflow.com/questions/56137343/angular-not-working-on-safari-browser-but-working-well-on-other-browsers, but I don't use DragEvent anywhere in the application.

Any ideas on fixing the issue?

Thanks