-
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 6 replies
-
| 
         Did you mean to call import instead of fetch?  | 
  
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
| 
         You probably need to follow the documentation for the library you’re trying to load, which I’m guessing is this: http://www.coolprop.org/coolprop/wrappers/Javascript/index.html I’m converting this to a discussion since this isn’t a bug in Framework.  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Thanks! But it works fine in ObservableHQ - see link. I'm hoping there is a workaround. Thanks,  | 
  
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
| 
         I followed up on your suggestion to download coolprop.js and coolprop.wasm, and tried several things to make it work. I tried your solution in here and here and other versions but none of them worked. I spent a morning trying to get it work but no success. If it's something that I missed and you won't have to spend much time trouble-shooting it, I would appreciate your help. Thanks,  | 
  
Beta Was this translation helpful? Give feedback.





Observable Framework is just vanilla JavaScript and HTML, so you can just add a script tag as shown in the documentation:
If you then want to wait for the module to load, it looks like you can do something like this:
Here’s a minimal example of using it: