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

Running build Command Result in Failures #116

Closed
stanleyowen opened this issue Sep 28, 2021 · 0 comments · Fixed by #117
Closed

Running build Command Result in Failures #116

stanleyowen opened this issue Sep 28, 2021 · 0 comments · Fixed by #117
Assignees
Labels
area: beta bug Something isn't working dependencies Issues/pull requests that update a dependency file fixed Bug has been fixed and shipped to production
Milestone

Comments

@stanleyowen
Copy link
Owner

stanleyowen commented Sep 28, 2021

Describe the bug
Running build command in netlify will result in failures which return the following error code:

3:15:38 PM: ────────────────────────────────────────────────────────────────
3:15:38 PM:   1. Build command from Netlify app                             
3:15:38 PM: ────────────────────────────────────────────────────────────────
3:15:38 PM: ​
3:15:38 PM: $ REACT_APP_CONTEXT=$CONTEXT CI='' yarn build
3:15:38 PM: yarn run v1.22.10
3:15:38 PM: $ cross-env GENERATE_SOURCEMAP=false react-scripts build
3:15:38 PM: /bin/sh: 1: cross-env: not found
3:15:38 PM: error Command failed with exit code 127.
3:15:38 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
3:15:38 PM: ​
3:15:38 PM: ────────────────────────────────────────────────────────────────
3:15:38 PM:   "build.command" failed                                        
3:15:38 PM: ────────────────────────────────────────────────────────────────
3:15:38 PM: ​
3:15:38 PM:   Error message
3:15:38 PM:   Command failed with exit code 127: REACT_APP_CONTEXT=$CONTEXT CI='' yarn build
3:15:38 PM: ​
3:15:38 PM:   Error location
3:15:38 PM:   In Build command from Netlify app:
3:15:38 PM:   REACT_APP_CONTEXT=$CONTEXT CI='' yarn build

This problem occurs when cross-env dependency is included in the devDependencies list instead of dependencies list which result in error.

Expected behavior
No error was returned from the build process.

Desktop (please complete the following information):

  • OS: Windows 11 Version 21H2 (Build 22000.194)
  • Browser Chrome
  • Version 94.0.4606.61
@stanleyowen stanleyowen added bug Something isn't working approved Issues have been confirmed by our team area: beta labels Sep 28, 2021
@stanleyowen stanleyowen added this to the v0.4.5 milestone Sep 28, 2021
@stanleyowen stanleyowen self-assigned this Sep 28, 2021
@stanleyowen stanleyowen added ongoing We are currently working on this issue and removed approved Issues have been confirmed by our team labels Sep 28, 2021
@stanleyowen stanleyowen added dependencies Issues/pull requests that update a dependency file fixed internally Bug has been fixed and ready to be shipped and removed ongoing We are currently working on this issue labels Sep 28, 2021
@stanleyowen stanleyowen mentioned this issue Sep 28, 2021
2 tasks
@stanleyowen stanleyowen added fixed Bug has been fixed and shipped to production and removed fixed internally Bug has been fixed and ready to be shipped labels Sep 28, 2021
@stanleyowen stanleyowen moved this to Done in Loofi Roadmap Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: beta bug Something isn't working dependencies Issues/pull requests that update a dependency file fixed Bug has been fixed and shipped to production
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant