我已经使用react-leaflet有一段时间了,几周后我删除了node_modules内的文件并重新安装了它们,我根本没有触及react-leaflet版本,但是当我尝试运行该项目时,它给了我一个错误。
./node_modules/@react-leaflet/core/esm/path.js 10:41 模块解析失败:意外的标记 (10:41) 文件已使用这些加载器处理:
Run Code Online (Sandbox Code Playgroud)const options = props.pathOptions ?? {};
| element.instance.setStyle(选项); | optionsRef.current = 选项;