Skip to content

Error: Do not access Object.prototype method #138

Closed
@fairking

Description

@fairking

if I include PrimeVue components right into my project the compiler shows the following errors in DataTable.vue and TreeTable.vue:

Do not access Object.prototype method 'hasOwnProperty' from target object

It references the error to the following eslint rule https://eslint.org/docs/rules/no-prototype-builtins

If I replace the lines this.filters.hasOwnProperty(xxx) with Object.prototype.hasOwnProperty.call(this.filters, xxx) the error goes away.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: BugIssue contains a bug related to a specific component. Something about the component is not working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions