Closed loveStef closed 3 weeks ago
The only reference to access within backup.js is found within the import section:
So it seems that NodeJS' fs module could not be resolved. If you are tyring to load that module within the renderer, you would need to enable NodeJS for the BrowserWindow instance (be careful with that, if you are loading external resources). If this is happening within the main process, something within the build / bundeling setup seems to be off.
Given that OP didn't reply, @neoxpert 's explanation is plausible. Closing.
Hi better-sqlite3! I'm new here. My project use![image](https://github.com/WiseLibs/better-sqlite3/assets/31029382/efa2bbe1-9fda-48f3-92ce-6ef9008a9364)
electron
,vite
andvue3
, now I want usebetter-sqlite3
as datadase. When I try to use import {Todo} from './todo'. Todo is a Class which has some CRUD function relateded to sqlite db. The Console has some error and my app become white Screen.some information my node.js version is
20.13.1
, I use windows11