since I just started with angular and I dont know it that well. I tried to import https://github.com/aratcliffe/Leaflet.contextmenu but I got this error(the one in the title). Can anybody tell me the process of importing/installing of this plugin, since there is no much literature regarding importing it in Angular (typescript).
What I did was:
<script src="node_modules/leaflet-contextmenu/dist/leaflet.contextmenu.js"></script> <script src="node_modules/leaflet-contextmenu/src/Map.ContextMenu.js"></script> <script src="node_modules/leaflet-contextmenu/dist/leaflet-contextmenu.css"></script>
import 'leaflet-contextmenu/dist/leaflet.contextmenu.css'; import 'leaflet-contextmenu/dist/leaflet.contextmenu'; import { contextmenu } from 'leaflet-contextmenu';
So if somebody knows what I did wrong, I would be very thankful.
2.1m questions
2.1m answers
60 comments
57.0k users