ishaan6395 / react-leaflet-enhanced-marker

This library will help render dynamic react components as markers on leaflet maps easily
MIT License
39 stars 10 forks source link

Build failing #12

Closed eric-burel closed 3 years ago

eric-burel commented 4 years ago

Hi, I get some Babel related issues when importing your package (v1.0.15), in a Storybook story:

ERROR in ./node_modules/react-leaflet-enhanced-marker/lib/Markers.js
Module not found: Error: Can't resolve 'babel-runtime/helpers/possibleConstructorReturn' in '/code/aplines/aplines-frontend/node_modules/react-leaflet-enhanced-marker/lib'
 @ ./node_modules/react-leaflet-enhanced-marker/lib/Markers.js 23:34-92
 @ ./src/components/map/stories/LeafletMap.stories.tsx

ERROR in ./node_modules/react-leaflet-enhanced-marker/lib/Markers.js
Module not found: Error: Cannot find module 'babel-runtime/core-js/object/get-prototype-of'
 @ ./node_modules/react-leaflet-enhanced-marker/lib/Markers.js 11:22-78
 @ ./src/components/map/stories/LeafletMap.stories.tsx

Are there dependencies to install? Also is that normal that your package.json points toward "lib" and not "dist"?