Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createPluginAsync was removed in molstar v3.0.0-dev.6 #9

Open
dsclassen opened this issue May 24, 2023 · 3 comments
Open

createPluginAsync was removed in molstar v3.0.0-dev.6 #9

dsclassen opened this issue May 24, 2023 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@dsclassen
Copy link

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
@samirelanduk
Copy link
Owner

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 samirelanduk added the help wanted Extra attention is needed label Jun 18, 2023
@ayushk1234
Copy link

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

@mdanner93
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants