Skip to content

Unable to create build after upgrading the app to [email protected] #12024

Closed
@shubhdwiv12

Description

@shubhdwiv12

Describe the bug

I have upgraded my project from [email protected] to [email protected]. npm start is working fine but when I am going for the build, I am getting the below error. The build is working fine when I downgraded the application to [email protected]

_Creating an optimized production build...
Failed to compile.

static/css/main.161533bd.css from Css Minimizer plugin
Error: Unexpected '/'. Escaping special characters with \ may help._

Did you try recovering your dependencies?

Yes, I tried recovering my dependencies with [email protected], still, it is causing but working fine with [email protected]

npmPackages:
react: ^17.0.1 => 17.0.2
react-dom: ^17.0.1 => 17.0.2
react-scripts: 5.0.0 => 5.0.0
npmGlobalPackages:
create-react-app: Not Found

Steps to reproduce

(Write your steps here:)

  1. There are different third-party dependencies, I have been using along with custom CSS.
  2. The Application is working fine and the build is getting created with [email protected]
  3. Looks like It is a CSSMinimizerPlugin causing the issue and in the older webpack version, the build is getting created.

Expected behavior

Build should be created.

Actual behavior

image

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