ElemeFE / ElemeFE/element

[Bug Report] Error occurs while preprocessing scss style with dart-sass

Open
#21,980 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.15.9

### OS/Browsers version
103.0.5060.114(正式版本) (arm64)

### Vue version
2.6.11

### Reproduction Link
https://codesandbox.io/s/delicate-pine-cu89x0?file=/src/App.vue

### Steps to reproduce
1.使用 dart-sass 作为preprocessor
2.引入 $--breakpoints 变量并使用
3. 报错

### What is Expected?
正常编译

### What is actually happening?
Error, 报错如下:
expected "(".

17 │ @media only screen and "(min-width: 768px) and (max-width: 991px)"{
│ ^

stdin 17:28 res()
stdin 27:7 root stylesheet

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked CodeSandbox reproduction and inspect how the $--breakpoints variable is processed by the SCSS preprocessor. Reproduce the reported dart-sass error around the generated media query, then verify that the example compiles successfully with dart-sass.

Written by the indexing model from the issue text.

Assessment

Tech stack
scss
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.