Importing from a module that requires a catch and window attachment

I am trying to load the NPM package babylon-helper-lib. I entered into the module helper on the website and it gave this:

I tried then writing a cell with

LIB = require('babylon-helper-lib@0.0.16/dist/index.js').catch(() => window["__defProp"])

And I tried about 50 other guesses about how to use this, but none of them worked. I’d appreciate any guidance, thanks!

The library bundle does not appear to support UMD modules (which is what Observable’s require() is for). However, you can import it as ES module with

helpers = import("")
1 Like

That worked! Thank you! :slight_smile: