moroshko / react-autosuggest

WAI-ARIA compliant React autosuggest component
http://react-autosuggest.js.org
MIT License
5.97k stars 587 forks source link

Error when compiling: babel-loader not found #632

Open agonsalves opened 5 years ago

agonsalves commented 5 years ago

I just tried adding react-autosuggest to my existing app that compiles just fine.

I'm importing it like so: import Autosuggest from 'react-autosuggest'

When it compiles, I get the following error:

./node_modules/react-autosuggest/dist/index.js
Module not found: Can't resolve 'C:\dev\example\node_modules\react-scripts\node_modules\babel-loader\lib\index.js' in 'C:\dev\example'

As you can see, I'm on Windows. The version of react-scripts is 3.0.0

How can I resolve this?

agonsalves commented 5 years ago

Note: This also happens when downgrading react-scripts to 2.1.8