fix inline component style directive

pull/7187/head
Efe S. Kucuk 5 years ago
parent 5ccfc3c5d7
commit 93cb8b20bf

@ -71,7 +71,10 @@ export default class InlineComponent extends Node {
case 'Transition': case 'Transition':
return component.error(node, compiler_errors.invalid_transition); return component.error(node, compiler_errors.invalid_transition);
case 'StyleDirective':
throw new Error(`Currently, style directives only work on elements. Error occurred on <${this.name}> component.`);
default: default:
throw new Error(`Not implemented: ${node.type}`); throw new Error(`Not implemented: ${node.type}`);
} }

Loading…
Cancel
Save