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"
],
...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.