[英]react leaflet Module parse failed: Unexpected token (10:39)
Failed to compile.
./node_modules/@react-leaflet/core/lib/path.js 10:39 ./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.模块解析失败:意外令牌 (10:39) 您可能需要适当的加载程序来处理此文件类型。 | | useEffect(function updatePathOptions() { | if (props.pathOptions.== optionsRef.current) { useEffect(function updatePathOptions() { | if (props.pathOptions.== optionsRef.current) {
var options = props.pathOptions?? {};
| | element.instance.setStyle(options); element.instance.setStyle(options); | | optionsRef.current = options; optionsRef.current = 选项;
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"
],
...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.