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

A JavaScript error occurred in the main process #22

Open
golove opened this issue Oct 11, 2021 · 2 comments
Open

A JavaScript error occurred in the main process #22

golove opened this issue Oct 11, 2021 · 2 comments

Comments

@golove
Copy link

golove commented Oct 11, 2021

[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
Copy link

ghfuidy commented Oct 15, 2021

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
Copy link

@ghfuidy 改了还是这个问题耶

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