2015-12-30 1 views
1

Je tente de créer un thème Drupal 8 mais j'ai des problèmes avec les bibliothèques de ressources.Drupal 8 problèmes d'ajout et d'extension de bibliothèques de ressources

Le site reste blanc et le journal des erreurs apache renvoie une exception php:

Uncaught PHP Exception Drupal\\Core\\Asset\\Exception\\InvalidLibrariesExtendSpecificationException: "The specified library "radweiser/main-style" does not exist." at /Users/****/Sites/dev/radweiser/web/core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php line 168 

J'utilise le bootstrap Drupal 8 Thème comme thème de base. Voici mes fichiers YML de mon thème appelé radweiser:

radweiser.info.yml

name: radweiser 
type: theme 
description: Drupal 8 Theme 
version: 0.1.0 
core: 8.x 
base theme: bootstrap 
screenshot: images/screenshot.png 
libraries: 
- radweiser/global-styling 
- radweiser/main-style 

libraries-extend: 
    bootstrap/base-theme: 
    - radweiser/main-style 

regions: 
    navigation: 'Navigation' 
    navigation_collapsible: 'Navigation (Collapsible)' 
    header: 'Top Bar' 
    highlighted: 'Highlighted' 
    help: 'Help' 
    content: 'Content' 
    sidebar_first: 'Primary' 
    sidebar_second: 'Secondary' 
    footer: 'Footer' 
    page_top: 'Page top' 
    page_bottom: 'Page bottom' 

radweiser.libraries.yml

global-styling: 
    version: VERSION 
    css: 
    theme: 
     styles/global.css: {} 

main-styles: 
    version: VERSION 
    css: 
    theme: 
     styles/main.css: {} 

Tout le monde sait le problème?

+0

Salut, vous utilisez la version --dev actuelle de noyau Drupal? – kxxxxoo

+0

J'utilise 8.0.1 stable – bambamboole

Répondre

0

Il était juste une faute de frappe

principal de style/main-styles