shadowaxe99 / wiki-tldr

https://wiki-tldr.vercel.app
1 stars 0 forks source link

sweep: fix #7

Closed shadowaxe99 closed 10 months ago

shadowaxe99 commented 10 months ago

Details

/bin/sh: react-scripts: command not found error Command failed with exit code 127. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Error: Command "yarn run build" exited with 127

Checklist - [X] Modify `package.json` ✓ https://github.com/shadowaxe99/wiki-tldr/commit/e8505401eabced61cbbdf83bc12626fcd2b24375 [Edit](https://github.com/shadowaxe99/wiki-tldr/edit/sweep/react-scripts-not-found/package.json) - [X] Running GitHub Actions for `package.json` ✓ [Edit](https://github.com/shadowaxe99/wiki-tldr/edit/sweep/react-scripts-not-found/package.json) ![Flowchart](https://raw.githubusercontent.com/shadowaxe99/wiki-tldr/sweep/assets/8fc589a5b2de7f62d5b861f10feb55da4ce76c08c8b68c3a1b4f87e162d22b00_7_flowchart.svg)
sweep-ai[bot] commented 10 months ago

Here's the PR! https://github.com/shadowaxe99/wiki-tldr/pull/8. See Sweep's process at dashboard.

💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID: 91507e0372)

Actions (click)

Sandbox Execution ✓

Here are the sandbox execution logs prior to making any changes:

Sandbox logs for 577f058
Checking package.json for syntax errors... ✅ package.json has no syntax errors! 1/1 ✓
Checking package.json for syntax errors...
✅ package.json has no syntax errors!

Sandbox passed on the latest main, so sandbox checks will be enabled for this issue.


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/shadowaxe99/wiki-tldr/blob/fb190a4881eea19719f4218380f16d42f9b66b95/package.json#L15-L18 https://github.com/shadowaxe99/wiki-tldr/blob/fb190a4881eea19719f4218380f16d42f9b66b95/package.json#L1-L15
I also found the following external resources that might be helpful: **Summaries of links found in the content:** https://yarnpkg.com/en/docs/cli/run: The page provides documentation for the `yarn run` command in Yarn 1 (Classic). It explains that this command is used to run a defined package script specified in the `package.json` file. The page includes an example of how to define scripts in the `package.json` file and how to run them using the `yarn run` command. It also mentions that additional arguments can be passed to the script. The page further explains that the `yarn run` command can also execute any locally installed executable that is inside `node_modules/.bin/`. It mentions that a script can be prefixed with `pre` or `post` to execute before or after another script. The page also provides information on running the `yarn run env` command to list environment variables available to the scripts at runtime. Finally, it mentions that if no script is specified, the `yarn run` command will list all available scripts for a package.

Step 2: ⌨️ Coding

{
  "name": "wiki-tldr",
  "version": "1.0.0",
  "private": true,
  "dependencies": {
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "tailwindcss": "^2.2.19",
    "prop-types": "15.7.2",
    "axios": "1.6.0",
    "use-debounce": "7.0.0",
    "@heroicons/react": "1.0.4"
  },
  "devDependencies": {
    "react-scripts": "^4.0.3"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  }
}


• After modifying the package.json file, run yarn install or npm install in the terminal to install the react-scripts package. This will make the react-scripts command available in the project.


+++ @@ -11,6 +11,9 @@ "use-debounce": "7.0.0", "@heroicons/react": "1.0.4" },

Ran GitHub Actions for e8505401eabced61cbbdf83bc12626fcd2b24375:
• Vercel Preview Comments:


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/react-scripts-not-found.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord