ElemeFE / ElemeFE/element

[Bug Report] Lodash dependency overwrites Window._

Open
#22,392 3 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.15.13

### OS/Browsers version
chrome 110.0

### Vue version
2.7.14

### Reproduction Link
https://codesandbox.io/s/hopeful-napier-ewyct8?file=/src/main.js:59-68

### Steps to reproduce
1. Click the Button
2. `window._` is not `undefined`

Please extract the project to local. CodeSandbox cannot reproduct this issue.

### What is Expected?
`window._` is `undefined`

### What is actually happening?
`window._` is lodash instance

Element `2.15.13` uses Lodash UMD version as a dependency (#22260). It overwrites `window._`.

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.