shukerullah / react-geocode

A React module to transform a description of a location (i.e. street address, town name, etc.) into geographic coordinates (i.e. latitude and longitude) and vice versa.
MIT License
207 stars 35 forks source link

Upgrading failure from 0.0.3 to 0.0.4 #5

Closed ryancoughlin closed 6 years ago

ryancoughlin commented 6 years ago

I just updated the package to 0.0.4 and am getting the following errors as soon as I boot up the project.

Let me know if there is anything else I can provide.

screen shot 2018-03-02 at 5 36 36 pm

shukerullah commented 6 years ago

0.0.3 version worked without any errors?

ryancoughlin commented 6 years ago

Yup! Worked great, locally but ran into https://github.com/shukerullah/react-geocode/issues/2. I saw this message and upgraded to fix that deploy issue which raised this new error.

shukerullah commented 6 years ago

updated package to 0.0.5, can you please try again?

ryancoughlin commented 6 years ago

This error is now gone, but I still get the same error as the other issue when deploying:

5:53:58 PM: $ react-scripts build
5:53:59 PM: Creating an optimized production build...
5:54:11 PM: Failed to compile.
5:54:11 PM: Failed to minify the code from this file:
5:54:11 PM:     ./node_modules/react-geocode/index.js:8
5:54:11 PM: Read more here: http://bit.ly/2tRViJ9
5:54:11 PM: error Command failed with exit code 1.
5:54:11 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
5:54:11 PM: error Command failed with exit code 1.
5:54:11 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
shukerullah commented 6 years ago

At the moment, you can move src/index.js to your src/ folder and treat it as application code. I will find its better solution later.

shukerullah commented 6 years ago

Duplicate of #2