Skip to content

node_modules/sqlite/build/index.mjs (3:9): "Database" is not exported by "node_modules/sqlite/build/Database.js", imported by "node_modules/sqlite/build/index.mjs" #183

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

Open
zisson opened this issue Apr 26, 2025 · 1 comment · May be fixed by #184

Comments

@zisson
Copy link

zisson commented Apr 26, 2025

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/sqlite/build/index.mjs b/node_modules/sqlite/build/index.mjs
index 8036ae1..f179b1c 100644
--- a/node_modules/sqlite/build/index.mjs
+++ b/node_modules/sqlite/build/index.mjs
@@ -1,6 +1,6 @@
 export * from "./Statement.js";
 export * from "./Database.js";
-import Database from "./Database.js";
+import { Database } from "./Database.js";
 
 /**
  * Opens a database for manipulation. Most users will call this to get started.

This issue body was partially generated by patch-package.

@theogravity theogravity linked a pull request Apr 28, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant