-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Description
Describe the bug
With CSS container queries on the way I wanted to flag this early
Currently using @container throws "RightParenthesis is expected"
Reproduction
https://svelte.dev/repl/c660c23146364ec3910534a89363801b?version=3
Logs
[!] (plugin svelte) ParseError: RightParenthesis is expected
src\views\album.svelte
156: }
157:
158: @container (min-width: 400px) {
^
159: .details {
160: outline: 3px solid lime;
ParseError: RightParenthesis is expected
at error (C:\git-projects\ample\node_modules\svelte\src\compiler\utils\error.ts:25:16)
at Parser$1.error (C:\git-projects\ample\node_modules\svelte\src\compiler\parse\index.ts:101:3)
at Object.read_style [as read] (C:\git-projects\ample\node_modules\svelte\src\compiler\parse\read\style.ts:31:11)
at tag (C:\git-projects\ample\node_modules\svelte\src\compiler\parse\state\tag.ts:189:27)
at new Parser$1 (C:\git-projects\ample\node_modules\svelte\src\compiler\parse\index.ts:53:12)
at parse (C:\git-projects\ample\node_modules\svelte\src\compiler\parse\index.ts:218:17)
at compile (C:\git-projects\ample\node_modules\svelte\src\compiler\compile\index.ts:93:14)
at Object.transform (C:\git-projects\ample\node_modules\rollup-plugin-svelte\index.js:111:21)
at ModuleLoader.addModuleSource (C:\git-projects\ample\node_modules\rollup\dist\shared\rollup.js:19504:30)
at ModuleLoader.fetchModule (C:\git-projects\ample\node_modules\rollup\dist\shared\rollup.js:19560:9)System Info
System:
OS: Windows 10 10.0.19042
CPU: (8) x64 AMD Ryzen 7 3700X 8-Core Processor
Memory: 9.25 GB / 16.00 GB
Binaries:
Node: 14.13.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.19041.1266.0), Chromium (96.0.1054.34)
Internet Explorer: 11.0.19041.1202
npmPackages:
rollup: ^2.52.3 => 2.52.3
svelte: ^3.42.5 => 3.42.5Severity
annoyance
ifiokjr, sllvn, georgecrawford, yashash-pugalia, rodshtein and 10 more