-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
On a new reactjs project https://github.com/keyanyang/react-leaflet-webpack-boilerplate
npm install --save leaflet-linestring-select
I just add this lines in App.js
import { Map, TileLayer } from 'react-leaflet';
import Select from 'leaflet-linestring-select'
or
import { Map, TileLayer } from 'react-leaflet';
var Select = require('leaflet-linestring-select');
Uncaught Error: Cannot find module 'rbush'
o http://localhost:8080/main.js?c2066d2489971b870df7:1666
./node_modules/leaflet-linestring-select/dist/L.Control.LineStringSelect.no-rbush.js/</</<[5]</<
On line : var Rbush = global.Rbush || require('rbush');
What I'm doing wrong ?
Metadata
Metadata
Assignees
Labels
No labels