-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: global component registration #8
Comments
Thanks for the report @Yubiao-Li Do you mind providing a reproduction via CodeSandbox or CodePen/JSFiddle? |
|
Ah it's not working because you registered components globally, which is currently not supported. Changing it to local registration works: https://codepen.io/privatenumber/pen/jOyRVEz?editors=1111 Let's change this to a feature request to support global component registration |
@privatenumber Oh I don't know it can't support global component registration. Looking forward to your update |
when I use the component like this
it didn't show normal and has warning that
Failed to resolve component: mp-button
, while I try toconsole.log(this)
in test.vue, it show that it didn't register any componentswhile I try
console.log(app)
in main.js , it seems normal, what happen???The text was updated successfully, but these errors were encountered: