I’m using the code snippets to embed my notebook in react. However, when I run ‘yarn start’ I get a ‘failed to compile error’ complaining about the fileattachments.
I did follow these instructions, also provided in embed window but it did not seem to solve the issue.
For file attachments to work with Babel, add @babel/plugin-syntax-import-meta to the 'plugins' section of your Babel config
I also followed the hack given here: how do i embed the notebook in react, where I replaced ‘new URL("./files…’ with ‘require("./files…’ which has worked for me before, however I’m still getting this error:
My notebook is viewable here https://observablehq.com/d/1aff5f3ccb61927a
I’d be grateful for any help. This is a workflow I intend on using a lot! Thanks