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

Description

@zisson

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch sqlite@5.1.1 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions