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();