From 4ca4e892b65c2f515be78700e0e1fe6069f65792 Mon Sep 17 00:00:00 2001 From: Erik Hofer Date: Thu, 2 May 2024 21:36:59 +0200 Subject: [PATCH] Fix again --- src/DatabaseResult/DatabaseResult.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DatabaseResult/DatabaseResult.tsx b/src/DatabaseResult/DatabaseResult.tsx index f7aa99c..e2fb700 100644 --- a/src/DatabaseResult/DatabaseResult.tsx +++ b/src/DatabaseResult/DatabaseResult.tsx @@ -15,7 +15,7 @@ INSERT INTO users VALUES (5, 'bob', '333'); `; const SQL = await initSqlJs({ - locateFile: (file) => sqlJsFiles[file] as string, + locateFile: (file) => (sqlJsFiles['/node_modules/sql.js/dist/' + file] as {default: string}).default, }); const db = new SQL.Database();