Most of the times when using third-party packages you have to copy over the images and fonts to the correct location in your public directory.
Do you get any errors in your console? That might be a good starting place for fixing this issue.
I'm using third party js libraries in my Laravel 5.5 project (leaflet and leaflet-draw). I installed the libraries using npm:
npm install leaflet
npm install leaflet-draw
I added the folowing lines in resources/assets/js/app.js:
require('leaflet');
require('leaflet-draw');
and in resources/assets/sass/app.scss:
@import "~leaflet/dist/leaflet.css";
@import "~leaflet-draw/dist/leaflet.draw.css";
after that, I run:
npm run dev
Assets compile and my application works, but I get a weird graphical error. When I draw a marker on map, it is drawn normally but the same marker image is drawn instead of shadow:

If I use CDNs for these libraries, everything looks fine. What am I doing wrong? Also, I checked node_modules\leaflet-draw\dist\images and there is marker-shadow.png inside. After compiling assets, I checked public\images\vendor\leaflet-draw\dist and there are some spritesheets inside, but other images are not there. What am I doing wrong?
Please or to participate in this conversation.