Skip to content

Commit

Permalink
Fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
erikhofer committed May 2, 2024
1 parent ae0ffe9 commit 6a39bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DatabaseResult/DatabaseResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6a39bad

Please sign in to comment.