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

how can i forbid auto install? #631

Closed
cereschen opened this issue Jan 14, 2021 · 4 comments
Closed

how can i forbid auto install? #631

cereschen opened this issue Jan 14, 2021 · 4 comments

Comments

@cereschen
Copy link

Or During the second installation, no errors are thrown?
I had trouble using WebComponent.

@antfu
Copy link
Member

antfu commented Jan 14, 2021

@cereschen Can you provide more context?

@cereschen
Copy link
Author

If I use composition-api in WebComponent,
I can only use the CDN approach (including projects that use the WebComponent),
otherwise composition-api might be installed several times and throw an error.
I can use plugininstAlledFlag to determine whether to install it, but only if it doesn't install automatically

@antfu
Copy link
Member

antfu commented Jan 14, 2021

How about importing @vue/composition-api before importing vue?

@cereschen
Copy link
Author

How about importing @vue/composition-api before importing vue?

Since I'm using vue in the cdn, it's hard to avoid this problem, so I decided to use the cdn as well for comperation-api, but even so, hopefully there's a way to lower the error level so that the program runs smoothly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants