MangoTsing / vite-electron-quick

⚡️Starter template with Vite2 Vue3 and Electron 11.x /使用 Vite2 Vue3 以及 Electron 11.x 打造的快速启动模版。
MIT License
153 stars 25 forks source link

A JavaScript error occurred in the main process #22

Open golove opened 3 years ago

golove commented 3 years ago

[vue] error when starting dev server: [vue] Error: The following dependencies are imported but could not be resolved: [vue] element-plus/lib/theme-chalk/index.css (imported by /home/golove/vite_electron/src/render/main.ts) [vue] Are they installed?

ele] A JavaScript error occurred in the main process [ele] Uncaught Exception: [ele] TypeError: Cannot destructure property 'ANY' of 'require$$26' as it is undefined.

ghfuidy commented 2 years ago

This problem is caused by element-plus which is different from the previous version. Now, you can use “import 'element-plus/dist/index.css'” to replace “import ‘element-plus/lib/theme-chalk/index.css’”。

myGitHubHuLin commented 2 years ago

@ghfuidy 改了还是这个问题耶