Warning: constant(): Couldn't find constant CSS_COMPONENTS in Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension() (line 140 of core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php).

Warning: constant(): Couldn't find constant CSS_PAGES in Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension() (line 140 of core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php).

Comments

Purvitagupta created an issue. See original summary.

purvitagupta’s picture

StatusFileSize
new906 bytes

I found problem

purvitagupta’s picture

Title: Warning: constant(): Couldn't find constant CSS_COMPONENTS i » Warning: constant(): Couldn't find constant CSS_COMPONENTS
imalabya’s picture

Status: Active » Needs work

@Purvitagupta thanks for the patch and working on it. Below is the feedback.

  1. +++ b/void.libraries.yml
    @@ -14,14 +14,14 @@ global-styling:
    +      css/component/branding.css: {}
    +      css/component/main_navigation.css: {}
    +      css/component/form.css: {}
    +      css/component/search.css: {}
    +      css/component/login.css: {}
    +      css/component/tabs.css: {}
    +      css/component/comment.css: {}
    

    Shouldn't change the path to the CSS files.

  2. +++ b/void.libraries.yml
    @@ -14,14 +14,14 @@ global-styling:
         pages:
    

    This needs to change to theme.

    Check out https://www.drupal.org/docs/8/creating-custom-modules/adding-stylesheets...

Also, please follow [#1054616] for Patch naming conventions. :)

imalabya’s picture

Status: Needs work » Needs review
StatusFileSize
new863 bytes
new654 bytes

Added patch to fix the issues.

Interdiff attached.

imalabya’s picture

Status: Needs review » Reviewed & tested by the community

  • imalabya committed b2559fa on 8.x-1.x
    Issue #3060386 by imalabya, purvitagupta: Warning: constant(): Couldn't...
imalabya’s picture

Status: Reviewed & tested by the community » Fixed

Pushed to 8.x-1.x branch. Thanks for contributing.

Status: Fixed » Closed (fixed)

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