Closed shadowaxe99 closed 10 months ago
91507e0372
)Here are the sandbox execution logs prior to making any changes:
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.
I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.
package.json
✓ https://github.com/shadowaxe99/wiki-tldr/commit/e8505401eabced61cbbdf83bc12626fcd2b24375 Edit
Modify package.json with contents:
• Add `"react-scripts": "^4.0.3"` to the `devDependencies` section of the `package.json` file. The version number may vary depending on the latest version available at the time of implementation. The `devDependencies` section should be added if it does not exist. The modified `package.json` file should look like this:
{
"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" },
package.json
✓ Edit
Check package.json with contents:
Ran GitHub Actions for e8505401eabced61cbbdf83bc12626fcd2b24375:
• Vercel Preview Comments: ✓
I have finished reviewing the code for completeness. I did not find errors for sweep/react-scripts-not-found
.
💡 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
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)