deployed site missing dependency #1412
-
|
Describe the bug Locally I can see this particular package being put under |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
Are you intending to use an npm import or a node import? An npm import does not need to be declared in your package.json, and is imported using the It sounds like Framework isn’t statically detecting your import of apache-arrow. Can you share more details about how you are importing apache-arrow into your code? What does the import statement look like, and where does this import statement live? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the clarification, I didn't know that distinction. Originally I did not have an import statement for I then removed the dependency in I then added a So it seems this runs fine locally because auto-caching puts the module under |
Beta Was this translation helpful? Give feedback.
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_npmand that solves the problem. (See http://rezolus-ui.iop.systems/)I nuked the
src/.observablehqdirectory and it builds fine.I have two JS cells in my
index.mdthat are involved in data ingestion, as below.Attaching the console output of my
npm run devafter 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