Skip to content

Error when compiling: babel-loader not found #632

Open
@agonsalves

Description

@agonsalves

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions