primevue: 3.12.0
vue-tsc: 0.29.8 (and have tried 0.30.0)
vite: 2.6.4
Today I decided to update due vite, vue and primevue and it broke - I rolled back but to prior version and even deleted package-lock and node_modules folder and did npm install but issue remains.
Using npm run dev gives no errors and vue app works with no issues, however when trying to build and running vue-tsc I get errors on DataTable filters - example error shown below:
Code: Select all
Type '{ action: { value: null; matchMode: string; }; }' is not assignable to type 'DataTableFilterMeta'.
Code: Select all
<DataTable
:value="actions"
class="p-datatable-sm"
dataKey="_id.$oid"
:rowHover="true"
v-model:filters="myFilters"
....
Code: Select all
<script lang="ts">
import { FilterMatchMode, FilterOperator } from "primevue/api"
..
setup: (props, context) => {
const myFilters = ref({
'action': {value: null, matchMode: FilterMatchMode.EQUALS}
})
...
}
...
</script>
I will dig in more tomorrow but was hoping someone may have seen this and have some ideas