hi @ArpitDadheech are you using create-react-app? Maybe this thread can be helpful how do i embed the notebook in react
It solves the FileAttachment error above. The idea is to replace the new URL
syntax with require
then webpack behind create-react-app would bundle the file attachments from node_modules.
Otherwise you have to try other plugins to deal with the import.meta.url
syntax. I haven’t had any success using @babel/plugin-syntax-import-meta
. In summary, if you’re using create-react-app you would have to eject the webpack configuration and add custom babel/loaders to deal with it, or easier use react-app-rewired
to use custom webpack/babel config.