You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are in the process of integrating uploadcare to our Magento 2 store. I have successfully integrate file uploader using Magneto 2's requirejs. Then I tried to adda the uploadcare tab effects to it where it starts to fail.
So the issue we are having is to do with uploadcare.tab-effects.js is that when I try to include that in to Magento it gives me an error saying uploadcare-widget.js cannot be found. A 404 error thrown by Magento require.js implementation I suppose. So I just debugged it a bit and found out it happens at
Unfortunately, I have no idea how JavaScript assets management works in Magento 2 but I'll try to help.
uploadcare-widget-tab-effects module should be loaded with uploadcare-widget as dependency. I think it works just like the jquery plugins in Magento. I found that it should be configured like that:
var config = {
"shim": {
"uploadcare-widget-tab-effects": ["uploadcare-widget"]
}
};
and then imported in order with requirejs(['uploadcare-widget', 'uploadcare-widget-tab-effects'])
Also you can just include all the uploadcare scripts in the raw html bypassing Magento's requirejs.
We are in the process of integrating uploadcare to our Magento 2 store. I have successfully integrate file uploader using Magneto 2's requirejs. Then I tried to adda the uploadcare tab effects to it where it starts to fail.
So the issue we are having is to do with uploadcare.tab-effects.js is that when I try to include that in to Magento it gives me an error saying uploadcare-widget.js cannot be found. A 404 error thrown by Magento require.js implementation I suppose. So I just debugged it a bit and found out it happens at
Then I tried commenting the that bit out and just have,
global.uploadcareTabEffects = factory(global.uploadcare)
Which actually took the 404 issue away. But then it start to complain about
"plugin is undefined"
error atfunction uploadcareTabEffects
So this is where I'm now with the integration. Could you please advise me on getting the integration going?
The text was updated successfully, but these errors were encountered: