molstar-react icon indicating copy to clipboard operation
molstar-react copied to clipboard

`createPluginAsync` was removed in molstar v3.0.0-dev.6

Open dsclassen opened this issue 1 year ago • 3 comments

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

dsclassen avatar May 24 '23 23:05 dsclassen

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).

samirelanduk avatar Jun 18 '23 21:06 samirelanduk

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

ayushk1234 avatar Jan 18 '24 12:01 ayushk1234

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

mdanner93 avatar Jan 21 '24 21:01 mdanner93