SQLite__namespace is not a constructor
Hi Im building a Electron-Vite App and running into the following error:
I think it has something to do with the import statement of better-sqlite3
I am using TS and the error gets thrown in the built JS file so I couldn't really figure it out. If you need more details to help me pls let me know.
Solution:Jump to solution
This is caused by your module interop config somehow. Does it work if you use
...
4 Replies
out/main.js (only the important path of it):
Error gets thrown in line 26: database:
new SQLite__namespace("../../../resources/database.sqlite3")
Solution
This is caused by your module interop config somehow. Does it work if you use
Omg thanks I somehow tried everything except that like importing Database, ...
Then the getting started guide prop needs an update?