bzarras / newsapi

A promise-based node interface for NewsAPI
MIT License
144 stars 39 forks source link

core-js compilation error #18

Closed taeh98 closed 4 years ago

taeh98 commented 5 years ago

The following error frequently occurs on npm compilations (runnning npm start with a React app):

./node_modules/newsapi/dist/index.js Module not found: Can't resolve 'core-js/modules/es6.array.index-of' in '/my-app/node_modules/newsapi/dist'

dinhkhanh commented 4 years ago

Have you fixed it? I'm facing the same issue.

Mobiletainment commented 4 years ago

I had to downgrade core-js and ended up using version 2.6.11 instead of 3.x.

bzarras commented 4 years ago

This should be fixed with the latest release. Going to close this out.