Skip to content

CRA 2 'Failed to compile' when running 'build' #5312

@multum

Description

@multum

Is this a bug report?

Yes

Did you try recovering your dependencies?

Yes. Additionally, I made a clean installation on another machine.

Which terms did you search for in User Guide?

'Updating to New Releases'

Environment

Environment:
OS: macOS 10.14
Node: 8.11.3
Yarn: Not Found
npm: 5.6.0
Watchman: Not Found
Xcode: Xcode 10.0 Build version 10A255
Android Studio: Not Found

Packages: (wanted => installed)
react: ^16.5.2 => 16.5.2
react-dom: ^16.5.2 => 16.5.2
react-scripts: ^2.0.4 => 2.0.4

Steps to Reproduce

npm run build

Expected Behavior

successful build

Actual Behavior

Error

Reproducible Demo

'Component' is a functional component.
Code

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions