DenisCarriere / geocoder-geojson

Geocoding results in GeoJSON format
https://www.npmjs.com/package/geocoder-geojson
MIT License
21 stars 10 forks source link

create-react-app fails building with ES6 features #16

Open CasperEngl opened 6 years ago

CasperEngl commented 6 years ago
> react-scripts build

Creating an optimized production build...
Failed to compile.

Failed to minify the code from this file:

        ./node_modules/geocoder-geojson/index.js:29

Read more here: http://bit.ly/2tRViJ9

There are a few more errors, and transpiling the following files with Babel fixes the issues. /index.js /utils/utils.js /providers/bing.js /providers/google.js /providers/mapbox.js /providers/wikidata.js

Using these in the CommonJS requirements runs perfectly with create-react-app.