Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build after yarn command #198

Open
adamteller opened this issue Aug 8, 2023 · 0 comments
Open

Unable to build after yarn command #198

adamteller opened this issue Aug 8, 2023 · 0 comments

Comments

@adamteller
Copy link

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

> [email protected] 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant