I have created a post but unfortunately, I haven't received any responses. Being new to leaflet, I am quite confused about what might be causing the issue. I followed all the instructions from the documents but I am still encountering errors.
<link rel="stylesheet" href="https://unpkg.com/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6b070e0a0d070e1f2b5a4558455f">[email protected]</a>/dist/leaflet.css" />
<script src="https://unpkg.com/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cba7aeaaada7aebf8bfae5f8e5ff">[email protected]</a>/dist/leaflet.js"></script>
import L from 'leaflet';
ERROR TypeError: Cannot read property 'control' of undefined
Below is my code snippet:
var polylineRouteB = L.Routing.control({...});