Skip to content

deployed site missing dependency #1412

Answered by thinkingfish
thinkingfish asked this question in Q&A
Discussion options

You must be logged in to vote

My current workaround is indeed using a dummy import "npm:apache-arrow"; statement even though I don't call Arrow explicitly. This brings the module under _npm and that solves the problem. (See http://rezolus-ui.iop.systems/)

I nuked the src/.observablehq directory and it builds fine.

I have two JS cells in my index.md that are involved in data ingestion, as below.

const file = view(
  Inputs.file({ label: 'Metric file', accept: '.arrow', required: true })
);
const data = file.arrow();

Attaching the console output of my npm run dev after nuking the cache. Note toward the end of the log I locally picked a file which triggered the async download of the arrow package.
dev.log

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@thinkingfish
Comment options

Comment options

You must be logged in to vote
5 replies
@thinkingfish
Comment options

@mbostock
Comment options

@mbostock
Comment options

@thinkingfish
Comment options

Answer selected by mbostock
@mbostock
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1411 on May 31, 2024 20:47.