Closed dmt0 closed 3 years ago
Thanks! Note that "part 2" is contained within "part 1" ... in the middle.
Possibly related: JupyterLab 3 switched to react 17.
Searching the react 17 announcement for "react/jsx-runtime" yields some insights, including:
The functions inside react/jsx-runtime and react/jsx-dev-runtime must only be used by the compiler transform. If you need to manually create elements in your code, you should keep using React.createElement. It will continue to work and is not going away.
Thanks for taking a look @jasongrout! Yeah @dmt0 you may need to monkey around inside RCE here to make it friendlier for the JupyterLab build system.
FYI @dmt0 even though JupyterLab 3 switched to React 17, I still want jupyterlab-chart-editor
to work with JupyterLab 2 as well for as long as possible, so if we can stay conservative with the fancy React upgrades that would be helpful :)
Part 1:
jupyterlab-chart-editor needs to be compatible with v2
Part 2:
cc @nicolaskruchten