Closed mhgtlc closed 1 month ago
Unable to reproduce the error. It's working now
@aryaantony92
Unable to reproduce the error. It's working now
The error is still there:
https://github.com/pimcore/admin-ui-classic-bundle/blob/1.x/public/js/pimcore/startup.js#L962C1-L962C3
Where does this L
come from?
@mhgtlc Could you please try again with the latest version ?
@aryaantony92 @mhgtlc L.
is a leaflet object (used mainly for Geo datatypes). I'm wondering why this is not part of admin bundle? 🤔
I still have this error L.Icon.Default.imagePath = '../bundles/pimcoreadmin/build/admin/images/'; (js error in browser console)
We use the pimcore version 11.1.5 and the admin bundle with version 1.3.4
Same here. I get a L is not defined
error in the console, when loading the Pimcore Backend.
@dvesh3 This issue should be re-opened as it doesn't seem to be fixed, right?
@dvesh3 WDYT? 🙂
I can also confirm it with:
It looks like the "Leaflet" library is loaded later than L.Icon.Default.imagePath is called in startup.js. After loading of admin, L is defined in console:
Issue is closed, but I can't find a commit with a bug fix @aryaantony92
@brusch @dvesh3 @aryaantony92 Issue is still there:
And indeed, behaviour is the same as @sevarozh described above (It looks like the "Leaflet" library is loaded later than L.Icon.Default.imagePath is called in startup.js)
can you share more detailed steps to reproduce? can it be reproduced on our demo?
@mhgtlc @sevarozh @aarongerig @storbahn Could you please test if this patch fix the problem? TIA https://github.com/pimcore/admin-ui-classic-bundle/pull/697
@robertSt7 This indeed resolves the issue on my side. 👍🏻
Error: Uncaught ReferenceError: L is not defined
file:
public/js/pimcore/startup.js:962