diff --git a/src/compiler/compile/nodes/InlineComponent.ts b/src/compiler/compile/nodes/InlineComponent.ts index 9d88b136cd..d1f845d6be 100644 --- a/src/compiler/compile/nodes/InlineComponent.ts +++ b/src/compiler/compile/nodes/InlineComponent.ts @@ -71,7 +71,10 @@ export default class InlineComponent extends Node { case '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: throw new Error(`Not implemented: ${node.type}`); }