Serious problems with JQuery
I'm having serious problems with plugins that depend on JQuery, it's been happening to me for a few days that I have to constantly reinstall plugins like Selectize, Select2, Flatpickr etc... I reinstall them, restart the server, and everything works fine, the next day I have the errors in question again such as the console, which prevent me from opening the pop-ups or displaying the editing forms correctly
I am detecting that the jquery module is being imported 2 times with different versions, one from the root, and another from "Image-cropper", and until what I remember from a long time ago that I programmed years ago with JQuery and Razor of C#, this brought the same problem, since the variables in memory were broken apparently
the problem here is that image cropper is including jquery in its headers, which is unnecessary - @anteolic if you could remove the first object in the headers export that would fix the problem. Jquery is already loaded on every saltcorn page
I removed it and updated the version, but I don’t see the new updated version in the module store on the free Saltcorn hosting.
Imho the problem is that jquery is even being used :)
It's best to abandon the old legacy, at least gradually... For example, to replace the selectize.js, there is this, Alternative for the menu editor, And so on...
cropper module removed jquery in https://github.com/anteolic/simple-cropper/commit/46da7f1778cf10231c70afda1e2719d7704903ff released in 0.3.2
I too would love to see compulsory jquery dependency reduce over time (ideally to nil), but that would be best served in its own separate issue.
@glutamate This issue can be closed if simple-cropper 0.3.2+ is available in the saltcorn store
EDIT: Confirming 0.3.2 from saltcorn store is available
It's best to abandon the old legacy, at least gradually... For example, to replace the selectize.js, there is this, Alternative for the menu editor, And so on...
See #3502 at least to cover select related legacy/dependencies part of the broader equation