Page 1 of 1

Error DataTable

Posted: 22 Apr 2020, 00:12
by ncsbsi
Good evening,

Table headings do not appear in versions greater than 1.0.6.

I already deleted the repository, executed:

npm cache clean --force
npm rebuild node-sass
npm install

Nothing I do works.

I'm using the sigma-vue tamplate

Code: Select all

vue.runtime.esm.js:619 [Vue warn]: Property or method "hasColumnFilter" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

found in

---> <DTTableHeader> at node_modules/primevue/components/datatable/TableHeader.vue
       <DataTable> at node_modules/primevue/components/datatable/DataTable.vue
         <Cashier> at src/components/Cashier.vue
           <App> at src/App.vue
             <Root>

Re: Error DataTable

Posted: 23 Apr 2020, 09:17
by cagatay.civici
I'm not able to replicate, the method is there and live demo works;

https://primefaces.org/primevue/showcase/#/datatable

Please provide a sample repo so that we can run and replicate, make sure you don't have package-lock.json as well.

Re: Error DataTable

Posted: 05 May 2020, 15:13
by findream
One month ago, I encountered the same problem when I tried to upgrade my PrimeVue version from 1.0.2 to 1.0.7.

The problem was that when I simply use the following command to upgrade, the DataTable header disappeared:
> npm uninstall primevue
> npm install primevue@1.0.7

Finally, my solution was as follows:
Manually deleted the node_modules directory, modified PrimeVue version in package.json and ran "npm install". And then, the problem was gone and DataTable header appeared normally.

I don't know why, since I have not totally understood the mechanism of npm yet.

Re: Error DataTable

Posted: 17 May 2020, 16:35
by cagatay.civici
Glad to hear issue is resolved.