molstar-react
molstar-react copied to clipboard
`createPluginAsync` was removed in molstar v3.0.0-dev.6
I'm unable to get your Component to work in my React project. I think it might have something to do with this
export 'createPluginAsync' (imported as 'createPluginAsync') was not found in 'molstar/lib/mol-plugin-ui/index' (possible exports: createPluginUI)
According to the molstar CHANGELOG.md:
- [Breaking] Removed ``createPlugin`` and ``createPluginAsync`` from ``mol-plugin-ui``
- Please use ``createPluginUI`` instead
Thanks for pointing this out - I don't have the time to fix this right now unfortunately but it should work if you force it to use molstar v2 (though I'm sure you've found another solution by now as I'm replying to this quite late).
I'm unable to get your Component to work in my React project. I think it might have something to do with this
export 'createPluginAsync' (imported as 'createPluginAsync') was not found in 'molstar/lib/mol-plugin-ui/index' (possible exports: createPluginUI)
According to the molstar CHANGELOG.md:
- [Breaking] Removed ``createPlugin`` and ``createPluginAsync`` from ``mol-plugin-ui`` - Please use ``createPluginUI`` instead
Hi, Did you find the solution? I got the same error
Hey,
in case you still struggle with this you can just replace the import:
import { createPluginUI } from "molstar/lib/mol-plugin-ui/index";
and then replace
createPluginAsync
with
createPluginUI
and everything should work as expected