marlove / react-native-geocoding

MIT License
208 stars 54 forks source link

geocoder.js file does not compile #6

Open devashreeganesha108gmailcom opened 6 years ago

devashreeganesha108gmailcom commented 6 years ago

I am actually using react-native-geocoding for my ReactJS app. Although I should not have used a native library for a ReactJS app, the code somehow works. While running the build script from the command line, an error message pops up saying that the geocoder.js file cannot be minified. Is there any solution this problem as I am trying to deploy my website to the server.

Any help would be greatly appreciated.

yairopro commented 6 years ago

When I've got errors of compiling, I try to remove code and recompile to test and check what exact part of the code doesn't compile. You should do the same with the Geocoder.js file. Since its code is quite simple, you should make a try and delete part by part until you know what's the exact line of code which makes problem.

devashreeganesha108gmailcom commented 6 years ago

Hi there.. Thanks for your response... The command line already shows me the line where the error occured, but I wonder how that would help in solving the problem. The code in geocoder.js file was written by the developer whose implementation is beyond my understanding. I've read that in some cases the ES6 code does not get converted to ES5 code for minification.

Would be great if you could let me know on this issue. cheers

yairopro commented 6 years ago

Give me the line of code please. I will try to help you.