-
Notifications
You must be signed in to change notification settings - Fork 153
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
cliui dependency error #383
Comments
cliui issues about this issue |
This problem occurred when trying to install |
electron-app.zip |
Very strange, it seems that as long as tailwindcss is introduced first, and then vue-router is introduced, this problem will be triggered. |
cliui only supports esm, so you need to exclude it in externalizeDevPlugin or install in devDependencies. |
I developed it in an esm environment, and this bug still appears, and this bug is also related to the dependent installation order, which is very confusing. |
failed when executing |
Yes, direct |
You can try the blank project I posted above |
It may be that cliui does not correctly handle the relationship between dependent packages(esm or cjs). You can remove |
ok |
Describe the bug
require() of ES Module
error when trying to build the project, caused by dependency oncliui
Use the solution in the documentation to fix it but it fails.
Log
Electron-Vite Version
^2.0.0
Electron Version
^28.1.1
Vite Version
^5.0.11
Validations
The text was updated successfully, but these errors were encountered: