how to resolve invalid module

I forked an existing notebook and updated versions to latest. However I am running into an issue invalid module.

One of the packages has a dependency seedrandom which relies on crypto. It’s possible to use a minimal version of it but how do I do package resolutions on observable?

I also tried a es6 import and didn’t seem to work as well

Hello, I have updated the original notebook Hello tfjs-tsne / Fil | Observable with esm.sh.

Hi @Fil thats awesome! can I ask why the example I have always have a error:

coords = TypeError: Cannot read properties of null (reading ‘findBackend’)

Your example works fine and I have the same code as you in my notebook!

Edit, I rerun the example and the error went away… I guess it was using some kind of cache…

1 Like