Skip to content

Failed to Compile. Fresh install #10964

@colinsteidtmann

Description

@colinsteidtmann

Reproduce:

npx create-react-app my-app
cd my-app
yarn start

yarn version: 1.22.10

Error: Failed to Compile
./src/index.js 1:43
Module parse failed: Unexpected token (1:43)
File was processed with these loaders:

  • ./node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js
  • ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js
    You may need an additional loader to handle the result of these loaders.

$RefreshRuntime$ = require('/Volumes/Colin's Mac/seeifitworks2/node_modules/react-refresh/runtime.js');
| $RefreshSetup$(module.id);
|

Describe the bug

(Write your answer here.)

Did you try recovering your dependencies?

(Write your answer here.)

Which terms did you search for in User Guide?

(Write your answer here if relevant.)

Environment

(paste the output of the command here.)

Steps to reproduce

(Write your steps here:)

Expected behavior

(Write what you thought would happen.)

Actual behavior

(Write what happened. Please add screenshots!)

Reproducible demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions