observablehq / framework

A static site generator for data apps, dashboards, reports, and more. Observable Framework combines JavaScript on the front-end for interactive graphics with any language on the back-end for data analysis.
https://observablehq.com/framework/
ISC License
2.13k stars 85 forks source link

deployed site missing dependency #1411

Closed thinkingfish closed 1 month ago

thinkingfish commented 1 month ago

Describe the bug I have a Framework project that uses apache-arrow, this dependency is declared in package.json, and when I execute npm run dev the pages works fine. However, when I deploy it, either to observable cloud or to netlify, it throws an error about missing package:

RuntimeError: error loading dynamically imported module: https://rezolus-ui.iop.systems/_npm/apache-arrow@16.1.0/_esm.js

Locally I can see this particular package being put under pages/.observablehq/cache/_npm during dev, but when I run npm run build, I don't see it under either dist/_npm or dist/_observablehq