News-API-gh / News-API-node

Our officially supported Node client library for accessing News API.
MIT License
42 stars 3 forks source link

error when minifying code (React.js) #5

Closed ramnatla closed 6 years ago

ramnatla commented 6 years ago

I get an error when using react and pushing to heroku

Failed to minify code from this file: ./node_modules/newsapi/index.js:17

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

The link says that "Some third-party packages don't compile their code to ES5 before publishing to npm. This often causes problems in the ecosystem because neither browsers (except for most modern versions) nor some tools currently support all ES6 features. We recommend to publish code on npm as ES5 at least for a few more years."