qiuxiang / react-native-baidumap-sdk

React Native BaiduMap SDK for Android + iOS
MIT License
330 stars 71 forks source link

iOS将js打包成bundle时,报错 You passed `path.replaceWith()` a falsy node, use `path.remove()` instead #63

Closed yangbo5207 closed 6 years ago

yangbo5207 commented 6 years ago

报错详情如下:

~/develop/feewee/fwApp/node_modules/react-native-baidumap-sdk/lib/js/map-view/text.js: /Users/yangbo/develop/feewee/fwApp/node_modules/react-native-baidumap-sdk/lib/js/map-view/text.js: You passed `path.replaceWith()` a falsy node, use `path.remove()` instead

目前我只能将map-view/text.js给删掉,然后就可以打包了,不过每次安装依赖的时候就会重新下载,因此也不是很好的解决方法。如何才能避免这个问题?

qiuxiang commented 6 years ago

看来这边得改下 text.js 的写法