JS issue when using with @blueprintjs/core package #452
-
| Related issue ticket: palantir/blueprint#4823 import idom
import idom_jupyter
blueprintjs = idom.web.module_from_template("react", "@blueprintjs/core", fallback="...")
bpbutton = idom.web.export(blueprintjs, "Button")
@idom.component
def ShowButton():
    return bpbutton()
ShowButton()Tested using this environment: https://mybinder.org/v2/gh/idom-team/idom-jupyter/main?filepath=notebooks%2Fintroduction.ipynb In the browser console, error: Uncaught (in promise) SyntaxError: Invalid or unexpected token | 
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
| I think this should probably be reported to the authors of  | 
Beta Was this translation helpful? Give feedback.
I think this should probably be reported to the authors of
blueprintjssince there's not too much that IDOM can do if it doesn't get a valid ES module from the CDN. Perhaps you could try a different CDN? The default is https://esm.sh, but you can change that by settingmodule_from_template(..., cdn="https://my-cdn.com"). I had issues with https://unpkg.com/, but maybe that would work in this case?