Duplicate key at line no. 7 in libraries.yml file.
Drupal\Core\Asset\Exception\InvalidLibraryFileException: Invalid library definition in themes/busy/busy.libraries.yml: Duplicate key "css/style.css" detected at line 7 (near "css/style.css: {}"). in Drupal\Core\Asset\LibraryDiscoveryParser->parseLibraryInfo() (line 348 of C:\xampp\htdocs\Drupal4Contribution\web\core\lib\Drupal\Core\Asset\LibraryDiscoveryParser.php).

Comments

Gauravmahlawat created an issue. See original summary.

gauravvvv’s picture

StatusFileSize
new268 bytes

I have provided the patch, please verify if it is working or not.

gauravvvv’s picture

Status: Active » Needs review
shaktik’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new68.59 KB

before patch
The website encountered an unexpected error. Please try again later.

Drupal\Core\Asset\Exception\InvalidLibraryFileException: Invalid library definition in core/themes/busy/busy.libraries.yml: Duplicate key "css/style.css" detected at line 7 (near "css/style.css: {}"). in Drupal\Core\Asset\LibraryDiscoveryParser->parseLibraryInfo() (line 348 of core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php).

#2 patch is working fine, Moveing to RTBC.

  • Gauravmahlawat authored f3176e5 on 8.x-1.x
    Issue #3160930 by Gauravmahlawat, shaktik: Duplicate key in Libraries....
stborchert’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for your work. Committed to 8.x-1.x

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.