🏠 back to Observable

Help importing "infusionsoft-api" package

Can someone please help figure out a way to import the following package:


I’ve tried using the require debugger and following the tips on how to import stubborn modules. Thank You

Hi @shism2, it seems like the developer coded it for a Node environment. It’s not bundled to run from the browser, and it’s node module ready, so you can’t require or import from a notebook.

  1. https://bundle.run could work, but it’s currently offline
  2. You could bundle it to be browser-friendly using rollup, for example

Note also that getting the package to work in the browser won’t do you any good if the API endpoint does not support CORS.

1 Like