Skip to content

Unable to build after yarn command #198

@adamteller

Description

@adamteller

The command yarn run build gave unexpected behavior on both Mac OSX Ventura, and Linux PopOs 22.04 LTS.

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

./src/index.js
Cannot find module: 'babel-polyfill'. Make sure this package is installed.

You can install this package by running: yarn add babel-polyfill.

Next action: execute yarn add babel-polyfill
success

Next action, run again "yarn run build" but faced another error

npm run compile && react-scripts build

> common-cartridge-viewer@0.1.1 compile
> lingui compile

Compiling message catalogs…
Done!
Creating an optimized production build...
Failed to compile.

./src/index.js
  Line 38:  Expected an assignment or function call and instead saw an expression  no-unused-expressions

Search for the keywords to learn more about each error.


error Command failed with exit code 1.  

Any ideas how to get past these issues? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions