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.

[Feature request] Reference globally registered component to Vetur

See original GitHub issue
  • I have searched through existing issues

Feature Request

First off all, thanks for this great update! Having props check and component signature is so useful, you are catching up fast with TSX.

I wondered if you though of a way of referencing globally registered components?

For exemple in Nuxt, I have a plugin that register a bunch of components, but the path can be different for all every project. Maybe a config file like vetur.config.js to indicate a path to the file?

Vue.component('SvgIcon', SvgIcon);
Vue.component('Spinner', Spinner);
Vue.component('Popin', Popin);

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
yoyo930021commented, Dec 8, 2020

Add in v0.31.0

1reaction
yoyo930021commented, Oct 14, 2020

Hi everyone, If you interested this issue, you can go to #2377 and #2378. View and post your ideas.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Global components | Vetur - GitHub Pages
Vetur support define global components. You can register template interpolation for that components anywhere in the project. Please add projects.
Read more >
Ask Question - Stack Overflow
In the src folder add the file shims-vue.d.ts with the following content : Vue 2 : declare module "*.vue" { import Vue from...
Read more >
Globally Registering Vue Components - Fjolt
In this tutorial, we're going to look at how you can globally register a component in Vue, so you never have to reference...
Read more >
Effective Guide on Vue components - Appsyoda
You cannot create a meaningful Vue app without components. Here's the easy and effective guide to working with components in vuejs.
Read more >
Vetur - Visual Studio Marketplace
Global components : support define global components. Quick Start. Install Vetur. Try it with Veturpack. Refer to setup page for setting up.
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