-
-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Leaflet] Error during installation #2105
Comments
Hi, how did you installed UX Map Leaflet? Did you install UX Map aswell? |
That's right, I installed both libraries - I'm struggling with this again. Either I don't know something, or the error comes from the first line in the map_controllers.js file import AbstractMapController from '@symfony/ux-map/abstract-map-controller'; should be import AbstractMapController from '@symfony/ux-map/abstract_map_controller'; Works for me. |
Ah, looks like you are not using Symfony AssetMapper/ImportMap but Webpack Encore? The component is experimental, so we can break things without worries. I think we will need to update the following lines to use
|
👍 from me on this. I'm also using Encore and running into the same issue. I tried editing the referenced files locally but didn't have any luck (I'm not a big JS type). |
Still doesn't seem to work. The following does, but I'm not sure if it's compatible with AssetMapper:
|
I think we have a way to handle both WebpackEncore and AssetMapper syntax/descriptor : ux/src/LiveComponent/assets/package.json Lines 11 to 28 in 2a177d6
|
I believe this is how we allow The other way could be to inline the abstract class during compilation/bundling ? |
I'm also facing this issue using symfony/ux-google-map and webpack encore. from
to
it works any suggestions? thanks in advance |
I will take a look |
Good news coming soon 🤩 |
PR opened #2199 |
Module build failed: Module not found:
"./vendor/symfony/ux-leaflet-map/assets/dist/map_controller.js" contains a reference to the file "@symfony/ux-map/abstract-map-controller".
This file can not be found, please check it for typos or update it if the file got moved.
"./vendor/symfony/ux-leaflet-map/assets/dist/map_controller.js" contains a reference to the file "leaflet/dist/leaflet.min.css".
This file can not be found, please check it for typos or update it if the file got moved.
The text was updated successfully, but these errors were encountered: