Skip to content

Expected a valid CSS identifier #9677

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sebastiandotdev opened this issue Nov 28, 2023 · 1 comment
Closed

Expected a valid CSS identifier #9677

sebastiandotdev opened this issue Nov 28, 2023 · 1 comment

Comments

@sebastiandotdev
Copy link

Describe the bug

Hello team,

I try to use nested css in svelte 5 I get an error

Reproduction

https://stackblitz.com/~/github.com/castrogarciajs/todo-list-svelte

Logs

Internal server error: C:/Users/johan/OneDrive/Escritorio/todo-list-svelte/src/routes/+page.svelte:63:0 Expected a valid CSS identifier
  Plugin: vite-plugin-svelte
  File: C:/Users/johan/OneDrive/Escritorio/todo-list-svelte/src/routes/+page.svelte:63:0
  60 |    @media (--OSdark) {
  61 |      background-image: var(--gradient-15);
  62 |    }
     |      ^
  63 |  }
  64 |

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i5-8300H CPU @ 2.30GHz
    Memory: 895.89 MB / 7.85 GB
  Binaries:
    Node: 20.9.0 - D:\nodejs\node.EXE
    npm: 10.1.0 - D:\nodejs\npm.CMD
    pnpm: 8.11.0 - ~\AppData\Local\pnpm\pnpm.EXE
  Browsers:
    Edge: Spartan (44.19041.3636.0), Chromium (119.0.2151.72)
    Internet Explorer: 11.0.19041.3636
  npmPackages:
    svelte: ^5.0.0-next.14 => 5.0.0-next.14

Severity

annoyance

@Conduitry
Copy link
Member

Duplicate of #8587.

@Conduitry Conduitry closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants