Sorry for no reproduction link, but the project is a company secret and I cant make an example on jsfiddle for electron.
I have a project for both web and electron with element 1.4. And the datepicker works in the browser, but not on electron. This is the code for the datepicker:
Element UI version
1.4.6
OS/Browsers version
Linux Electron
Vue version
2.4.4
Reproduction Link
https://jsfiddle.net
Steps to reproduce
Sorry for no reproduction link, but the project is a company secret and I cant make an example on jsfiddle for electron.
I have a project for both web and electron with element 1.4. And the datepicker works in the browser, but not on electron. This is the code for the datepicker:
Here is the webpack config for electron: https://pastebin.com/ahQ1bR05
And here is the web one: https://pastebin.com/Uin93Nde
What is Expected?
This is what it looks like in the browser, without any issues: https://i.imgur.com/zYoxZ5o.png
What is actually happening?
This is the issue in electron: https://i.imgur.com/oTB7Fk3.png
Together with these errors in the console: https://pastebin.com/qpkuM4jZ
I've narrowed it down to the
element-ui/lib/locale/index.js
file, where the _deepmerge2 variable is structured like this in the browser:And like this on electron:
Electron seems to import the deepmerge module differently