DigitalBuild-AU / MyJobsAI

Job application tracker with many features
1 stars 0 forks source link

Fix ESLint Plugin Installation in GitHub Actions #605

Closed sweep-ai[bot] closed 6 months ago

sweep-ai[bot] commented 6 months ago

PR Feedback (click)

Changes made:

  1. Confirmed that "@typescript-eslint/eslint-plugin" is correctly listed under devDependencies in backend/package.json.
  2. Added a step in the GitHub Actions workflow file, .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

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.

sweep-ai[bot] commented 6 months ago

Rollback Files For Sweep

sweep-ai[bot] commented 6 months ago
Sweeping Fixing PR: track the progress here.

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