error: bundling failed: Error: While trying to resolve module react-native-baidumap-sdk from file /Users/xulipei/Desktop/study/react-native(epxem)/react-native-baidumap-sdk-master/example/index.js, the package /Users/xulipei/Desktop/study/react-native(epxem)/react-native-baidumap-sdk-master/package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (/Users/xulipei/Desktop/study/react-native(epxem)/react-native-baidumap-sdk-master/lib/js. Indeed, none of these files exist:
error: bundling failed: Error: While trying to resolve module
react-native-baidumap-sdk
from file/Users/xulipei/Desktop/study/react-native(epxem)/react-native-baidumap-sdk-master/example/index.js
, the package/Users/xulipei/Desktop/study/react-native(epxem)/react-native-baidumap-sdk-master/package.json
was successfully found. However, this package itself specifies amain
module field that could not be resolved (/Users/xulipei/Desktop/study/react-native(epxem)/react-native-baidumap-sdk-master/lib/js
. Indeed, none of these files exist: