Skip to content
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

Table: Computed property "bodyStyle" is already defined in Props. #5243

Closed
NeluQi opened this issue Feb 8, 2024 · 1 comment
Closed

Table: Computed property "bodyStyle" is already defined in Props. #5243

NeluQi opened this issue Feb 8, 2024 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@NeluQi
Copy link

NeluQi commented Feb 8, 2024

Describe the bug

and
files-component.ts:921 [Vue warn]: Computed property "getPTOptions" is already defined in Methods.

Strange problem. Because of some directive changes, I get the error “Computed property “bodyStyle” is already defined in Props.” And at the same time it stops responding or starts to lag very much.

This only happens with primevue components

I don’t understand the reason and this happens randomly when the data is changed. And sometimes in a different component altogether, I don’t understand why.

Perhaps this is due to asynchronous connection of the components

As an example
MarksTabComponent: defineAsyncComponent({
loader: () => import('@/components/scene-marks-tab/scene-marks.vue'),
loadingComponent: SkeletonLoader,
}),

image
image

image
image
image

image
image
image
image
image

This does not happen with ion and other components.
my "vue": "3.4.15",

Reproducer

no

PrimeVue version

3.48.1

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

last chrome

Steps to reproduce the behavior

No response

Expected behavior

No response

@NeluQi NeluQi added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 8, 2024
@NeluQi
Copy link
Author

NeluQi commented Feb 8, 2024

I removed defineAsyncComponent and the work became more stable, the error does not seem to occur.

Please fix the work with defineAsyncComponent

@mertsincan mertsincan added Status: Pending Review Issue or pull request is being reviewed by Core Team and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Feb 9, 2024
@mertsincan mertsincan added this to the 3.50.0 milestone Feb 9, 2024
@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Pending Review Issue or pull request is being reviewed by Core Team labels Mar 14, 2024
@tugcekucukoglu tugcekucukoglu self-assigned this Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants