Sunday, October 9, 2022

[FIXED] Why do I get error: run npm ci & run npm build failed when pushing changes to React app that is deployed on Firebase?

Issue

Here's a link to the repo for better readability: https://github.com/shaynemcp/reactCounterDemo/runs/7507090095?check_suite_focus=true

fail run npm ci & npm run build


Solution

Your issue is already in the logs. Your build treats warnings as errors and your eslint warns of the list of unused variables.

Delete the variables in the mentioned files or make them used and you should be fine.

Edit: looking at your index.js you seem to do imports but never use the imports. So you should remove unused imports.



Answered By - Lalaluka
Answer Checked By - Senaida (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.