🏠 back to Observable

Import in React Breaks

I’m trying to import parts of my notebook into my React proyect, but when I run the code, it throws “define is not a module”. I download the examples from Mike Bostok that are on github, and they run well. But if I try to insert any notebook into a React component, it will throw the error.

I’m not a react user so I won’t be able to respond to your specific question, but I’m pretty sure you’ll need to provide some more details to get help - like a minimal notebook that you’re trying to embed, together with a pointer to an attempt to embed it.

Good luck!