Help Center/ CodeArts Check/ FAQs/ General Issues/ Why Am I Seeing Error CC.00040010.400?/ Error of Sonarqube Engine Check for CSS File: No File Name Extension
Updated on 2026-08-10 GMT+08:00

Error of Sonarqube Engine Check for CSS File: No File Name Extension

Symptom

A task checked by the sonarqube engine fails, and the log is displayed as shown in Figure 1.

Figure 1 Log

Cause Analysis

When "type": "module" is set in the package.json file, the current sonarqube version has a bug where the CSS scanner fails to detect file extensions during imports. Therefore, CSS rules are not applied, and the server cannot start.

Solution

  1. Access the code repository in use.
  2. Delete "type": "module" from the package.json file.

  3. Create a file named sonar-project.properties in the root directory of the code repository.
  4. Enter the following code in the sonar-project.properties file:

    sonar.working.directory=projectdir
    #projectdir is the relative directory of the project code. Ensure that package.json is not under the projectdir directory.