./node_modules/react-leaflet/esm/Pane.js 25:37 Module parse failed: Unexpected token (25:37) File was processed with these loaders:
- ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js You may need an additional loader to handle the result of these loaders. | } |
const parentPaneName = props.pane ?? context.pane; | const parentPane = parentPaneName ? context.map.getPane(parentPaneName) : undefined; | const element = context.map.createPane(name, parentPane); to handle the result of these loaders.
i'm currently getting this error when i run react-leaflet v3.2.1. i'm currently using react v1.0.0. and react-scripts v4.0.3. Please how can i fix this?