Megapiximage Error From Fineuploader When Loading Page With Requirejs
I am refactoring my application to use RequireJS (using the sbt-web abstraction in Play Framework, but that isn't germane). First, I simply sought to use a shim to load FineUpload
Solution 1:
The FineUploader package references the 'MegaPixImage' variable, so you need to make that available. I think the following should work:
require(['fineUploader', 'megapiximage'], function(fineUploader, MegaPixImage) {
// initialize your fineuploader here
})
Note that you have actually included the MegaPixImage library twice now. I therefore decided to keep FineUploader out of my RequireJS setup and add it as a seperate javascript file in the HTML.
Post a Comment for "Megapiximage Error From Fineuploader When Loading Page With Requirejs"