Skip to content
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

[Bug Report] 2.15.12打包出现css编译错误 #22260

Closed
alen256 opened this issue Nov 17, 2022 · 4 comments
Closed

[Bug Report] 2.15.12打包出现css编译错误 #22260

alen256 opened this issue Nov 17, 2022 · 4 comments

Comments

@alen256
Copy link

alen256 commented Nov 17, 2022

Element UI version

2.15.12

OS/Browsers version

MacOS 16

Vue version

2.7.14

Reproduction Link

https://github.com/ElemeFE/element

Steps to reproduce

npm run build

What is Expected?

打包成功

What is actually happening?

Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Invalid CSS after "...ttom:4px;color:": expected expression (e.g. 1px, bold), was "#73;font-size:14"
on line 1 of node_modules/element-ui/lib/theme-chalk/index.css

el-statistic .head{margin-bottom:4px;color:#73;font-size:14px}.el-statist
------------------------------------------^

@webvs2
Copy link
Contributor

webvs2 commented Nov 17, 2022

Just a moment, I'll check the problem

@syrm-ll
Copy link

syrm-ll commented Nov 17, 2022

我也遇到这个问题, 不只是打包 运行时就会报错

临时解决方案: 不要使用 css import , 在 main.js 或其他文件内直接 import 'element-ui/lib/theme-chalk/index.css'

@webvs2
Copy link
Contributor

webvs2 commented Nov 17, 2022

@syrm-ll Will be fixed in a minor release, watch for post-release updates

@webvs2
Copy link
Contributor

webvs2 commented Nov 17, 2022

@alen256

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

3 participants