2015-12-30 34 views
1

我嘗試構建一個Drupal 8主題,但是我遇到了資產庫的一些問題。Drupal添加和擴展資產庫的8個問題

該網站停留白色和apache的錯誤日誌中拋出一個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 

我使用的是引導Drupal的8主題作爲我的基本主題。 這裏被稱爲radweiser我我的主題YML文件:

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: {} 

任何人都知道這個問題?

+0

嗨,您可以使用Drupal核心的當前--dev版本? – kxxxxoo

+0

我使用8.0.1穩定版 – bambamboole

回答

0

這只是一個錯字

主要風格/主風格