javascript - MegaPixImage Error From FineUploader When Loading Page with RequireJS -
I am restoring my application to use RequireJS (in the Play Framework using SBT-Web Abstracts, But it is not compatible).
First of all, I just wanted to use a shim to load the fine user, because it is not AMD-compatible, but I have not defined " megapixel image < / Em> "error. It seemed strange to me because the FineUploader has no dependencies (as the content of third party is created).
But after watching, I have downloaded separately and set up my RequireJS configuration in this manner (coffee script):
needjs.config (path) : Megapiximme: './megapiximage' fineUploader: './custom.fineuploader' Shim: OKExploreer: Export: 'OKUploader' DIPA: ['jquery', 'megapiximage']) is required (['./' main '], (main ) - & gt; Required (['fineUploader', './myfile'] Returns)
However, I still get the same error, although the library is AMD-compatible.
Any information about how I should set up my RequireJS configuration is appreciated.
The installer package refers to the 'megapixible variable' variable, so you need to make that available. I think the following should be done:
is required (['fineUploader', 'megapiximage'], function (penalty applicator, megapix image) {// start your gambling uploader Do}}
Note that you have actually included the megapixemase library twice. So I decided to keep FineUploader from my RequireJS setup and add HTML as a separate JavaScript file.
Comments
Post a Comment