I encountered two problems, the first problem is that the "fs-extra/esm" module cannot be imported in the preload.js script in electron, vite, vue3 projects. The second problem is that after removing the item 'fs-extra/esm' module entry, the message "module not found: fs/promises" is displayed.
I encountered two problems, the first problem is that the "fs-extra/esm" module cannot be imported in the preload.js script in electron, vite, vue3 projects. The second problem is that after removing the item 'fs-extra/esm' module entry, the message "module not found: fs/promises" is displayed.