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

npm run start Fails Due to Missing ESLint Configuration File (eslint.config.js) #86

Open
Rahul-Patel-17 opened this issue Dec 23, 2024 · 4 comments
Assignees

Comments

@Rahul-Patel-17
Copy link

Describe the bug
The npm run start command fails to execute due to an ESLint configuration issue. The error message indicates that ESLint cannot find the eslint.config.js file and suggests migrating from the old .eslintrc.* configuration to the new eslint.config.js format.

To Reproduce
Steps to reproduce the behavior:

  1. Open a terminal/command prompt.
  2. Navigate to the project directory: C:\Users\rahpatel\source\repos\xperience-by-kentico-lucene\src\Kentico.Xperience.Lucene.Admin\Client.
  3. Run the command: npm run start.
  4. The error message about ESLint's configuration file missing is displayed.

Expected behavior
The npm run start command should run successfully, linting the code and starting the webpack development server without issues.

Screenshots
image

Library Version

  • eslint: 9.17.0
  • npm: 10.8.2
  • Node.js: 20.18.0

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Not applicable (command-line issue)

Smartphone (please complete the following information):

  • Device: Not applicable
  • OS: Not applicable
  • Browser: Not applicable
  • Version: Not applicable

Additional context

  • ESLint seems to have deprecated support for .eslintignore files, and it requires using the eslint.config.js file instead.
  • The issue appears to be due to missing or outdated ESLint configuration, specifically the migration from .eslintrc.* to eslint.config.js.
@liparova
Copy link
Collaborator

liparova commented Jan 6, 2025

Thank you for bringing this to our attention. We will investigate and keep you informed of our progress.

@bkapustik
Copy link
Collaborator

Hello, the latest version of Kentico.Xperience.Lucene up to date uses eslint version 8.56.0 which does not have this issue. Maybe your local node modules are ahead of the project ?

@Rahul-Patel-17
Copy link
Author

Library Version

  • eslint: 9.17.0
  • npm: 10.8.2
  • Node.js: 20.18.0

@Rumec
Copy link
Contributor

Rumec commented Jan 20, 2025

From what I see it seems that you are not running npm i command to install the dependencies locally and therefore you are using global dependencies. Try to install local dependencies and repeat the process.

The project has ESLint 8.56.0 as it's dependency and since ESLint 9+ introduced new format of configuration files it is not compatible.

Let us know whether this helped, please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants