Closed maxacarvalho closed 1 year ago
Hi, I'm trying to solve an issue where my Vue components' code-completion won't work if they are not registered within the main.ts file.
main.ts
Here's the gist of it
// main.ts import { createApp } from "vue"; // component import Button from "primevue/button"; init(); function init() { const app = createApp(App); app.component("PrimeButton", Button); }
// main.ts import { createApp } from "vue"; import { registerComponents } from "./registerComponents"; init(); function init() { const app = createApp(App); registerComponents(app); }
// registerComponents.ts import type { App } from "vue"; import Button from "primevue/button"; export function registerComponents(app: App): void { app.component("PrimeButton", Button); }
@maxacarvalho This is an issue with WebStorm support for Vue. Please file an issue here: https://youtrack.jetbrains.com/issues/WEB
Hi, I'm trying to solve an issue where my Vue components' code-completion won't work if they are not registered within the
main.ts
file.Here's the gist of it
In this case, the code-completion works 😄
In this case, the code-completion does not work 😢