Open
Description
What happens?
Trying to replicate the following opfs unit test:
duckdb-wasm/packages/duckdb-wasm/test/opfs.test.ts
Lines 26 to 34 in afc96d5
In this stackblitz playground
I am seeing the this error (open the preview in a new tab):
Error: Opening the database failed with error: {"exception_type":"IO","exception_message":"The file \"opfs://test.db\" exists, but it is not a valid DuckDB database file!"}
open https://vitejsvitep9xkszdp-2g04--5173--1b4252dd.local-corp.webcontainer.io/node_modules/.pnpm/@duckdb+duckdb-wasm@1.29.1-dev53.0/node_modules/@duckdb/duckdb-wasm/dist/duckdb-browser-eh.worker.js:1
onMessage https://vitejsvitep9xkszdp-2g04--5173--1b4252dd.local-corp.webcontainer.io/node_modules/.pnpm/@duckdb+duckdb-wasm@1.29.1-dev53.0/node_modules/@duckdb/duckdb-wasm/dist/duckdb-browser-eh.worker.js:1
onmessage https://vitejsvitep9xkszdp-2g04--5173--1b4252dd.local-corp.webcontainer.io/node_modules/.pnpm/@duckdb+duckdb-wasm@1.29.1-dev53.0/node_modules/@duckdb/duckdb-wasm/dist/duckdb-browser-eh.worker.js:1
duckdb-browser-eh.worker.js:1:729159
Related: #1856
To Reproduce
- Open the playground: https://stackblitz.com/edit/vitejs-vite-p9xkszdp?file=src%2Fmain.ts
- See the developer tools console on the preview (open preview in a new tab)
Browser/Environment:
Chrome 131.0.6778.265, Firefox 134.0.2
Device:
macOS (M1)
DuckDB-Wasm Version:
1.29.1-dev53.0
DuckDB-Wasm Deployment:
https://stackblitz.com/edit/vitejs-vite-p9xkszdp?file=src%2Fmain.ts (don't really understand this...)
Full Name:
Quinn Blenkinsop
Affiliation:
None
Metadata
Assignees
Labels
No labels