赞
踩
运行项目,终端出现如下报错:
in ./node_modules/_react-draggable@4.4.6@react-draggable/build/cjs/Draggable.js
Module parse failed: Unexpected token (78:10)
You may need an appropriate loader to handle this file type.
| y: position.y,
| prevPropsPosition: {
| ...position
| }
| };
经过react-draggable
github的issue查看,将package.json中react-draggable的版本改为4.4.5,重新下载依赖包即可解决。(注:npm下载有缓存,最好删掉依赖包再重新下载)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。