When I attempt to bundle duckdb-wasm, I get the following error:
(!) Unresolved dependencies
https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency
apache-arrow (imported by node_modules/@duckdb/duckdb-wasm/dist/duckdb-esm.js)
(!) Missing global variable name
Use output.globals to specify browser global variable names corresponding to external modules
apache-arrow (guessing 'apacheArrow')
And on an html page that loads the bundle, I get:
Uncaught ReferenceError: apacheArrow is not defined
<anonymous> http://localhost:5000/poc.js:25
Steps to reproduce:
- run
npm install
- run
npm run dev
and go tohttp://localhost:5000
- observe the browser console and terminal