keplergl / kepler.gl

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
http://kepler.gl
MIT License
10.12k stars 1.71k forks source link

[Fix] Example node-app Arrow Errors #2508

Closed tpulmano closed 5 months ago

tpulmano commented 5 months ago

Trying to run the node-app example fails with import errors like this:

ERROR in ./node_modules/apache-arrow/ipc/metadata/message.mjs 46:14-33
Can't import the named export 'Builder' from non EcmaScript module (only default export is available)
 @ ./node_modules/apache-arrow/Arrow.mjs
 @ ./node_modules/apache-arrow/Arrow.dom.mjs
 @ ./node_modules/@kepler.gl/utils/dist/arrow-data-container.js
 @ ./node_modules/@kepler.gl/utils/dist/index.js
 @ ./node_modules/@kepler.gl/components/dist/side-panel/layer-panel/layer-list.js
 @ ./node_modules/@kepler.gl/components/dist/index.js
 @ ./src/app.js
 @ ./src/main.js

Copying this fix from the demo-app resolves them: https://github.com/keplergl/kepler.gl/blob/f897057379e4c5483fd3cfe788036e71d791dbaa/examples/demo-app/webpack.config.js#L40-L45