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

module not found: fs/promises #1041

Open
yknn opened this issue May 13, 2024 · 1 comment
Open

module not found: fs/promises #1041

yknn opened this issue May 13, 2024 · 1 comment

Comments

@yknn
Copy link

yknn commented May 13, 2024

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

RyanZim commented May 13, 2024

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

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

2 participants