Failed to compile.
./node_modules/@react-leaflet/core/lib/path.js 10:39
Module parse failed: Unexpected token (10:39)
You may need an appropriate loader to handle this file type.
| useEffect(function updatePathOptions() {
| if (props.pathOptions !== optionsRef.current) {
var options = props.pathOptions ?? {};
| element.instance.setStyle(options); | optionsRef.current = options;
I had the same problem. After some research, I found the below answers, which helped me fix them.
...
"browserslist": [
">0.2%",
"not dead",
"not op_mini all"
],
...