bluehalo / ngx-leaflet-draw

MIT License
89 stars 31 forks source link

Error Module not found #115

Closed cscrum closed 3 years ago

cscrum commented 3 years ago

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'

cscrum commented 3 years ago

OK, so I feel like an idiot. Forgot to install the regular leaflet-draw and just had the @asymmetrik/ngx-leaflet-draw. My bad.