I have added this to my module:
import { LeafletModule } from '@asymmetrik/ngx-leaflet';
import { LeafletDrawModule } from '@asymmetrik/ngx-leaflet-draw';
but I get this error when compiling:
Error: ./node_modules/@asymmetrik/ngx-leaflet-draw/ivy_ngcc/dist/leaflet-draw/core/leaflet-draw.directive.js
Module not found: Error: Can't resolve 'leaflet-draw' in 'C:\Angular7_projects\neonet\ngx-admin\node_modules\@asymmetrik\ngx-leaflet-draw\ivy_ngcc\dist\leaflet-draw\core'
I have been using ngx-leaflet for some time and it is working fine. I need to be able to draw a rectangle so I ran:
npm install leaflet-draw npm install @asymmetrik/ngx-leaflet-draw
I have added this to my module: import { LeafletModule } from '@asymmetrik/ngx-leaflet'; import { LeafletDrawModule } from '@asymmetrik/ngx-leaflet-draw';
but I get this error when compiling:
Error: ./node_modules/@asymmetrik/ngx-leaflet-draw/ivy_ngcc/dist/leaflet-draw/core/leaflet-draw.directive.js Module not found: Error: Can't resolve 'leaflet-draw' in 'C:\Angular7_projects\neonet\ngx-admin\node_modules\@asymmetrik\ngx-leaflet-draw\ivy_ngcc\dist\leaflet-draw\core'