You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
client:174 ReferenceError: process is not defined
at node_modules/@duckdb/node-bindings/duckdb.js (duckdb.js:1:51)
at __require2 (chunk-MTI3AIJG.js?v=d47ac081:18:50)
at node_modules/@duckdb/node-api/lib/index.js (index.js:18:23)
at __require2 (chunk-MTI3AIJG.js?v=d47ac081:18:50)
at index.js:39:43
Uncaught (in promise) ReferenceError: _setThrew is not defined
at invoke_viii (duckdb-browser-mvp.worker.js?type=module&worker_file:2:521001)
at 09af586e
at Module._duckdb_web_fail_with (duckdb-browser-mvp.worker.js?type=module&worker_file:2:513014)
at Object.ccall (duckdb-browser-mvp.worker.js?type=module&worker_file:2:233490)
at lt (duckdb-browser-mvp.worker.js?type=module&worker_file:2:795118)
at Object.readFile (duckdb-browser-mvp.worker.js?type=module&worker_file:2:818571)
at _duckdb_web_fs_file_read (duckdb-browser-mvp.worker.js?type=module&worker_file:2:170054)
at 09af586e
at 09af586e
at 09af586e
macOS 15.2
Svelte 4
The text was updated successfully, but these errors were encountered:
Can you say more about what environment you're running the above code in?
Since you're using Svelte, a framework for frontend web applications, it seems likely you're trying to run this code in a browser environment. That isn't expected to work. This is a Node package, so it will only run in a Node environment. For running DuckDB in the browser, try DuckDB Wasm.
Simply importing this from another file will result in an error.
I also get this error when I put in code to attach a CSV file from https://github.com/duckdb-wasm-examples/sveltekit-typescript.
The text was updated successfully, but these errors were encountered: