Closed sweep-ai[bot] closed 6 months ago
I'm currently fixing this PR to address the following:
[Sweep GHA Fix] The GitHub Actions run failed on 6d9797d (main) with the following error logs: ``` The command: Run cd backend yielded the following error: ##[error]Process completed with exit code 2. Here are the logs: npm notice created a lockfile as package-lock.json. You should commit this file. + eslint@7.32.0 added 119 packages from 73 contributors and audited 119 packages in 2.765s 15 packages are looking for funding run `npm fund` for details found 0 vulnerabilities Oops! Something went wrong! :( ESLint: 7.32.0 ESLint couldn't find the plugin "@typescript-eslint/eslint-plugin". (The package "@typescript-eslint/eslint-plugin" was not found when loaded as a Node module from the directory "/home/runner/work/MyJobsAI/MyJobsAI/backend".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following: npm install @typescript-eslint/eslint-plugin@latest --save-dev The plugin "@typescript-eslint/eslint-plugin" was referenced from the config file in ".eslintrc.js". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. ```
β¨ Created Pull Request: https://github.com/DigitalBuild-AU/MyJobsAI/pull/609
PR Feedback (click)
Changes made:
devDependencies
inbackend/package.json
..github/workflows/nodejs.yml
, to explicitly install devDependencies after installing other dependencies in the backend. This ensures that all devDependencies, including "@typescript-eslint/eslint-plugin", are correctly installed during the CI process.Summary of Changes
backend/package.json
: Ensured "@typescript-eslint/eslint-plugin" is correctly listed underdevDependencies
..github/workflows/nodejs.yml
: Added a step to explicitly install devDependencies in the backend during the CI process.These changes should ensure that ESLint and its plugins are correctly installed and available during CI checks, preventing the issue from occurring in the future.