Problem/Motivation
Facing the following fatal error
The website encountered an unexpected error. Please try again later.
Drupal\Core\Asset\Exception\IncompleteLibraryDefinitionException: Incomplete library definition for definition 'faq-styles' in extension 'varbase_faqs' in Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension() (line 135 of core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php).
Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryDefinitions() (Line: 66)
Drupal\Core\Asset\LibraryDiscoveryCollector->resolveCacheMiss() (Line: 149)
Drupal\Core\Cache\CacheCollector->get() (Line: 44)
Drupal\Core\Asset\LibraryDiscovery->getLibrariesByExtension() (Line: 58)
Drupal\Core\Asset\LibraryDiscovery->getLibraryByName() (Line: 68)
Drupal\Core\Asset\LibraryDependencyResolver->doGetDependencies() (Line: 41)
Drupal\Core\Asset\LibraryDependencyResolver->getLibrariesWithDependencies() (Line: 87)
Drupal\Core\Asset\LibraryDependencyResolver->getMinimalRepresentativeSubset() (Line: 112)
Drupal\Core\Asset\AssetResolver->getLibrariesToLoad() (Line: 130)
Drupal\Core\Asset\AssetResolver->getCssAssets() (Line: 318)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries() (Line: 164)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments() (Line: 97)
Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor->processAttachments() (Line: 45)
Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond()
call_user_func() (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 199)
Symfony\Component\HttpKernel\HttpKernel->filterResponse() (Line: 187)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 74)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 54)
Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704)
Drupal\Core\DrupalKernel->handle() (Line: 19)Proposed resolution
- Fix the format of the
varbase_faqs/faq-styleslibrary in the "varbase_faqs.libraries.yml"
Remaining tasks
- ✅ File an issue about this project
- ✅ Addition/Change/Update/Fix to this project
- ✅ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ➖ Developer Documentation support on feature change/addition
- ➖ User Guide Documentation support on feature change/addition
- ✅ Accessibility and Readability
- ✅ Code review from 1 Varbase core team member
- ✅ Full testing and approval
- ✅ Credit contributors
- ✅ Review with the product owner
- ✅ Update Release Notes and Update Helper on new feature change/addition
- ✅ Release Varbase 10.0.0-beta1, varbase_faqs-10.0.0-alpha3
Varbase update type
- ✅ No Update
- ➖ Optional Update
- ➖ Forced Update
- ➖ Forced Update if Unchanged
User interface changes
After the fix:
LTR - Varbase Frequently Asked Questions site section page

RTL - Varbase Frequently Asked Questions site section page

API changes
- N/A
Data model changes
- N/A
Release notes snippet
- Issue #3375938: Fixed Incomplete library definition for definition
faq-stylesin extension Varbase FAQs
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Frequently-Asked-Questions-varbase10x1-rtl.png | 528.43 KB | rajab natshah |
| #3 | Frequently-Asked-Questions-varbase10x1.png | 575.71 KB | rajab natshah |
Comments
Comment #3
rajab natshahComment #4
rajab natshahComment #5
rajab natshah✅ Released varbase_faqs-10.0.0-alpha3
Comment #7
rajab natshah✅ Released Varbase 10.0.0-beta1