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
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:
As you can see, I'm on Windows. The version of react-scripts is 3.0.0
How can I resolve this?