ElemeFE / ElemeFE/element

[Bug Report] npm compile failed:Cannot use 'in' operator to search for '0' in arguments_marker. File: static/css/chunk-elementUI.68c70ad5.css

Open
#22,533 0 comments 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.13.2

### OS/Browsers version
Linux

### Vue version
2.6.10

### Reproduction Link
https://codepen.io/ziyoung/pen/LKNBqB

### Steps to reproduce
> vue-cli-service build

Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme

- Building for production...
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
ERROR Error: CSS minification error: Cannot use 'in' operator to search for '0' in arguments_marker. File: static/css/chunk-elementUI.68c70ad5.css
Error: CSS minification error: Cannot use 'in' operator to search for '0' in arguments_marker. File: static/css/chunk-elementUI.68c70ad5.css
at /tmp/compile_scm/src/om-server/project/server/sequoiacm-om-omserver/om-ui/node_modules/@intervolga/optimize-cssnano-plugin/index.js:106:21
at
at process._tickCallback (internal/process/next_tick.js:188:7)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scm-web@1.0.0 build:prod: `vue-cli-service build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scm-web@1.0.0 build:prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /opt/ci/jenkins/.npm/_logs/2023-05-15T19_29_34_018Z-debug.log

### What is Expected?
正常编译

### What is actually happening?
偶现编译失败

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.