-
|
I am trying to get Tom Larkworthy's Draggable LocalFile fileInput working in Framework. It relies on Mike Bostock's LocalFile notebook, which uses Boiling down the code, I tried to create a .js file to import called When I try to consume this in a Framework notebook, I get the error Despite several attempts, I can't seem to get this file attachment to load correctly outside of the Framework context. As a Framework page, I can get Mike's LocalFile notebook to work just fine. Should I be looking for other ways to load in a local file other than FileAttachment in this context? Any help and guidance is welcome and appreciated! 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Your import looks wrong. Per the docs, it should be: import {FileAttachment} from "observablehq:stdlib"; |
Beta Was this translation helpful? Give feedback.
-
|
Thanks, @mbostock - That did the trick. Thank you for all the time, care and attention that you dedicate to helping users! ❤️ |
Beta Was this translation helpful? Give feedback.
Your import looks wrong. Per the docs, it should be: