jprichardson / node-fs-extra

Node.js: extra methods for the fs object like copy(), remove(), mkdirs()
MIT License
9.43k stars 775 forks source link

module not found: fs/promises #1041

Closed yknn closed 2 months ago

yknn commented 3 months ago

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.

image image

RyanZim commented 3 months ago

Do you have nodeIntegration turned on? What version of fs-extra do you have installed?

RyanZim commented 2 months ago

Closing for lack of response.