Difficulty getting started

UI Components for Vue
Post Reply
Posts: 2
Joined: 24 Feb 2023, 23:37

25 Feb 2023, 00:10


I have begun the process of incorporating PrimeView into my Vue JS app, and I am having several issues,

The first is the simple inclusion of a basic component. I have added the necessary includes:

Code: Select all

import PrimeVue from "primevue/config";
and this runs fine, but if I add a component, using either one of the two techniques:


Code: Select all

import Button from "primevue/button";
app.component("Button", Button);
or Component.vue:

Code: Select all

import Button from "primevue/button";
components: { Button },
I get this error:

Code: Select all

Uncaught (in promise) TypeError: currentRenderingInstance is null
I also see these warnings:

Code: Select all

[Vue warn]: resolveDirective can only be used in render() or setup().
[Vue warn]: Unhandled error during execution of render function 
  at <Button label="Add New Contract" > 
Any assistance or direction would be most appreciated. Thanks.

Posts: 66
Joined: 06 Sep 2022, 08:59

09 Mar 2023, 12:12

Based on what you shared, I think you imported it correctly. Is it possible to fully share your Main.js file? Something else seems to be affecting this situation.

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests