diff --git a/.changeset/tall-mugs-buy.md b/.changeset/tall-mugs-buy.md new file mode 100644 index 0000000000..7c05fe6629 --- /dev/null +++ b/.changeset/tall-mugs-buy.md @@ -0,0 +1,5 @@ +--- +"svelte": patch +--- + +fix: prevent false positive store error in module script diff --git a/packages/svelte/src/compiler/errors.js b/packages/svelte/src/compiler/errors.js index 1eb5459353..439b2b4034 100644 --- a/packages/svelte/src/compiler/errors.js +++ b/packages/svelte/src/compiler/errors.js @@ -435,10 +435,6 @@ const errors = { // code: 'illegal-declaration', // message: 'The $ prefix is reserved, and cannot be used for variable and import names' // }, - // illegal_subscription: { - // code: 'illegal-subscription', - // message: 'Cannot reference store value inside + +

{answer}

\ No newline at end of file