From 2d49506ab945d201caf398c337e909eefdb8f370 Mon Sep 17 00:00:00 2001 From: henninggross Date: Tue, 12 Oct 2021 16:07:54 +0200 Subject: [PATCH] introdcued new compiler error --- src/compiler/compile/compiler_errors.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compiler/compile/compiler_errors.ts b/src/compiler/compile/compiler_errors.ts index 54263c3eb9..2a25f766a7 100644 --- a/src/compiler/compile/compiler_errors.ts +++ b/src/compiler/compile/compiler_errors.ts @@ -234,6 +234,10 @@ export default { code: 'invalid-animation', message: 'An element that uses the animate directive must be the immediate child of a keyed each block' }, + invalid_animation_key: { + code: 'invalid-animation', + message: 'An element that uses the animate directive must be used inside a keyed each block. Did you forget to add a key to your each block?' + }, invalid_animation_sole: { code: 'invalid-animation', message: 'An element that uses the animate directive must be the sole child of a keyed each block'