question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feat: global component registration

See original GitHub issue

when I use the component like this

// app.vue
<mp-block>
  <Test />
</mp-block>
// test.vue
<template>
  <mp-button>111</mp-button>
</template>

it didn’t show normal and has warning that Failed to resolve component: mp-button , while I try to console.log(this) in test.vue, it show that it didn’t register any components image

while I try console.log(app) in main.js , it seems normal, what happen??? image

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Yubiao-Licommented, Apr 28, 2021

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

0reactions
privatenumbercommented, Apr 27, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

feat: Ionic Vue: Global registration of Ionic components #22182
As described in the Vue 3 doc, enable the global registration of Ionic components to avoid the repetition of lengthy imports & component...
Read more >
Component Registration - Vue.js
There are two ways to register components: global and local. Global Registration #. We can make components available globally in the current Vue...
Read more >
FEAT/UserGuide - FSL - FslWiki
Structural images for use as "highres" images in registration ... The MELODIC option runs the ICA (Independent Component Analysis) tool in ...
Read more >
Network Probe Global Market Report 2022 - Yahoo Finance
Network Probe Global Market Report 2022: Featuring Accedian, Cisco, ... 13, 2022 (GLOBE NEWSWIRE) -- The "Network Probe Market by Component ...
Read more >
Newegg.com: Computer Parts, PC Components, Laptops ...
Newegg.com offers the best prices on Computer Parts, PC Components, Laptops, Gaming Systems, Automotive Parts, Office Supplies, and more with fast shipping ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found